Skip to content

Commit e3bf8e4

Browse files
authored
Improve README syntax (#3)
1 parent 47d2de4 commit e3bf8e4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ comment-only change to `build/src/lib.rs`. (Using the `bazel` branch.)
3131
All times are for debug builds as that is the standard developer workflow,
3232
where incremental builds matter.
3333

34-
```
34+
```bash
3535
cargo build (incremental by default) 1.65s
3636
bazel build (without worker) 2.47s
3737
bazel build (with worker) 1.2s
@@ -50,7 +50,7 @@ following changes to your `WORKSPACE` file.
5050
1. Change your `rules_rust` repository to point to the branch, like this. This
5151
should replace any existing entry for the rules.
5252

53-
```
53+
```bazel
5454
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
5555
git_repository(
5656
name = "io_bazel_rules_rust",
@@ -61,7 +61,7 @@ git_repository(
6161

6262
2. Add a repository for the rustc-worker binary for your platform.
6363

64-
```
64+
```bazel
6565
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
6666

6767
http_file(
@@ -76,7 +76,7 @@ That's it! Bazel 0.27 and higher will use workers by default when available. You
7676

7777
If you want to play with this, but don't have an existing Rust project handy, you can:
7878

79-
```
79+
```bash
8080
git clone https://github.com/nikhilm/ninja-rs
8181
cd ninja-rs
8282
git checkout bazel
@@ -106,9 +106,9 @@ update this:
106106

107107
## TODO
108108

109-
[ ] Tests
110-
[ ] How to build with Bazel to bootstrap in rules\_rust.
111-
[ ] Submit PR for rules\_rust.
109+
- [ ] Tests
110+
- [ ] How to build with Bazel to bootstrap in rules\_rust.
111+
- [ ] Submit PR for rules\_rust.
112112

113113
## Contributing
114114

0 commit comments

Comments
 (0)