Skip to content

Commit

Permalink
Update commit and versions in the documentation. (#491)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <piotrsikora@google.com>

Co-authored-by: David Freese <freese@verily.com>
  • Loading branch information
PiotrSikora and David Freese committed Nov 11, 2020
1 parent fb6460c commit 29eb232
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "io_bazel_rules_rust",
sha256 = "618cba29165b7a893960de7bc48510b0fb182b21a4286e1d3dbacfef89ace906",
strip_prefix = "rules_rust-5998baf9016eca24fafbad60e15f4125dd1c5f46",
sha256 = "b5d4d1c7609714dfef821355f40353c58aa1afb3803401b3442ed2355db9b0c7",
strip_prefix = "rules_rust-8d2b4eeeff9dce24f5cbb36018f2d60ecd676639",
urls = [
# Master branch as of 2020-09-24
"https://github.com/bazelbuild/rules_rust/archive/5998baf9016eca24fafbad60e15f4125dd1c5f46.tar.gz",
# Master branch as of 2020-11-10
"https://github.com/bazelbuild/rules_rust/archive/8d2b4eeeff9dce24f5cbb36018f2d60ecd676639.tar.gz",
],
)

Expand Down Expand Up @@ -55,19 +55,19 @@ You can also browse the [full API in one page](flatten.md).
To build with a particular version of the Rust compiler, pass that version to [`rust_repositories`](flatten.md#rust_repositories):

```python
rust_repositories(version = "1.42.0", edition="2018")
rust_repositories(version = "1.47.0", edition="2018")
```

As well as an exact version, `version` can be set to `"nightly"` or `"beta"`. If set to these values, `iso_date` must also be set:

```python
rust_repositories(version = "nightly", iso_date = "2020-04-19", edition="2018")
rust_repositories(version = "nightly", iso_date = "2020-11-10", edition="2018")
```

Similarly, `rustfmt_version` may also be configured:

```python
rust_repositories(rustfmt_version = "1.4.8")
rust_repositories(rustfmt_version = "1.4.20")
```

## External Dependencies
Expand Down

0 comments on commit 29eb232

Please sign in to comment.