@@ -31,7 +31,7 @@ comment-only change to `build/src/lib.rs`. (Using the `bazel` branch.)
31
31
All times are for debug builds as that is the standard developer workflow,
32
32
where incremental builds matter.
33
33
34
- ```
34
+ ``` bash
35
35
cargo build (incremental by default) 1.65s
36
36
bazel build (without worker) 2.47s
37
37
bazel build (with worker) 1.2s
@@ -50,7 +50,7 @@ following changes to your `WORKSPACE` file.
50
50
1 . Change your ` rules_rust ` repository to point to the branch, like this. This
51
51
should replace any existing entry for the rules.
52
52
53
- ```
53
+ ``` bazel
54
54
load(" @bazel_tools//tools/build_defs/repo:git.bzl" , " git_repository" )
55
55
git_repository(
56
56
name = " io_bazel_rules_rust" ,
@@ -61,7 +61,7 @@ git_repository(
61
61
62
62
2 . Add a repository for the rustc-worker binary for your platform.
63
63
64
- ```
64
+ ``` bazel
65
65
load(" @bazel_tools//tools/build_defs/repo:http.bzl" , " http_file" )
66
66
67
67
http_file(
@@ -76,7 +76,7 @@ That's it! Bazel 0.27 and higher will use workers by default when available. You
76
76
77
77
If you want to play with this, but don't have an existing Rust project handy, you can:
78
78
79
- ```
79
+ ``` bash
80
80
git clone https://github.com/nikhilm/ninja-rs
81
81
cd ninja-rs
82
82
git checkout bazel
@@ -106,9 +106,9 @@ update this:
106
106
107
107
## TODO
108
108
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.
112
112
113
113
## Contributing
114
114
0 commit comments