@@ -22,10 +22,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22
22
# https://github.com/bazelbuild/rules_rust/releases
23
23
http_archive(
24
24
name = " rules_rust" ,
25
- sha256 = " 7fb9b4fe1a6fb4341bdf7c623e619460ecc0f52d5061cc56abc750111fba8a87 " ,
25
+ sha256 = " 6bfe75125e74155955d8a9854a8811365e6c0f3d33ed700bc17f39e32522c822 " ,
26
26
urls = [
27
- " https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.7 .0/rules_rust-v0.7 .0.tar.gz" ,
28
- " https://github.com/bazelbuild/rules_rust/releases/download/0.7 .0/rules_rust-v0.7 .0.tar.gz" ,
27
+ " https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.9 .0/rules_rust-v0.9 .0.tar.gz" ,
28
+ " https://github.com/bazelbuild/rules_rust/releases/download/0.9 .0/rules_rust-v0.9 .0.tar.gz" ,
29
29
],
30
30
)
31
31
@@ -37,7 +37,7 @@ rust_register_toolchains()
37
37
```
38
38
39
39
The rules are under active development, as such the lastest commit on the
40
- ` main ` branch should be used. ` main ` is only tested against ` 4 .0.0` as the
40
+ ` main ` branch should be used. ` main ` is only tested against ` 5 .0.0` as the
41
41
minimum supported version of Bazel. Though previous versions may still be
42
42
functional in certain environments.
43
43
@@ -47,8 +47,7 @@ functional in certain environments.
47
47
- [ rust_doc] ( rust_doc.md ) : rules for generating and testing rust documentation.
48
48
- [ rust_clippy] ( rust_clippy.md ) : rules for running [ clippy] ( https://github.com/rust-lang/rust-clippy#readme ) .
49
49
- [ rust_fmt] ( rust_fmt.md ) : rules for running [ rustfmt] ( https://github.com/rust-lang/rustfmt#readme ) .
50
- - [ rust_proto] ( rust_proto.md ) : rules for generating [ protobuf] ( https://developers.google.com/protocol-buffers ) .
51
- and [ gRPC] ( https://grpc.io ) stubs.
50
+ - [ rust_proto] ( rust_proto.md ) : rules for generating [ protobuf] ( https://developers.google.com/protocol-buffers ) and [ gRPC] ( https://grpc.io ) stubs.
52
51
- [ rust_bindgen] ( rust_bindgen.md ) : rules for generating C++ bindings.
53
52
- [ rust_wasm_bindgen] ( rust_wasm_bindgen.md ) : rules for generating [ WebAssembly] ( https://www.rust-lang.org/what/wasm ) bindings.
54
53
- [ cargo] ( cargo.md ) : Rules dedicated to Cargo compatibility. ie: [ ` build.rs ` scripts] ( https://doc.rust-lang.org/cargo/reference/build-scripts.html ) .
@@ -65,19 +64,19 @@ You can also browse the [full API in one page](flatten.md).
65
64
To build with a particular version of the Rust compiler, pass that version to [ ` rust_register_toolchains ` ] ( flatten.md#rust_register_toolchains ) :
66
65
67
66
``` python
68
- rust_register_toolchains(version = " 1.59.0 " , edition = " 2018" )
67
+ rust_register_toolchains(version = " 1.62.1 " , edition = " 2018" )
69
68
```
70
69
71
70
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:
72
71
73
72
``` python
74
- rust_register_toolchains(version = " nightly" , iso_date = " 2022-02-23 " , edition = " 2018" )
73
+ rust_register_toolchains(version = " nightly" , iso_date = " 2022-07-18 " , edition = " 2018" )
75
74
```
76
75
77
76
Similarly, ` rustfmt_version ` may also be configured:
78
77
79
78
``` python
80
- rust_register_toolchains(rustfmt_version = " 1.59.0 " )
79
+ rust_register_toolchains(rustfmt_version = " 1.62.1 " )
81
80
```
82
81
83
82
## External Dependencies
0 commit comments