Skip to content

Improve README syntax #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ comment-only change to `build/src/lib.rs`. (Using the `bazel` branch.)
All times are for debug builds as that is the standard developer workflow,
where incremental builds matter.

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

```
```bazel
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "io_bazel_rules_rust",
Expand All @@ -61,7 +61,7 @@ git_repository(

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

```
```bazel
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")

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

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

```
```bash
git clone https://github.com/nikhilm/ninja-rs
cd ninja-rs
git checkout bazel
Expand Down Expand Up @@ -106,9 +106,9 @@ update this:

## TODO

[ ] Tests
[ ] How to build with Bazel to bootstrap in rules\_rust.
[ ] Submit PR for rules\_rust.
- [ ] Tests
- [ ] How to build with Bazel to bootstrap in rules\_rust.
- [ ] Submit PR for rules\_rust.

## Contributing

Expand Down