update to latest rules_rust

- bumps rust version to 1.53
- drops support for incremental building, which is currently
disabled in stable Rust releases due to bugs. 'cargo check' can still
be used to quickly check things compile
This commit is contained in:
Damien Elmes 2021-06-21 12:12:59 +10:00
parent b392020798
commit 2bfb0c9286
3 changed files with 4 additions and 15 deletions

View File

@ -20,7 +20,7 @@ def setup_deps():
rust_repositories(
edition = "2018",
version = "1.51.0",
include_rustc_srcs = True,
)
raze_fetch_remote_crates()

View File

@ -155,17 +155,6 @@ cache build products and downloads:
build --disk_cache=~/bazel/ankidisk --repository_cache=~/bazel/ankirepo
```
If you're frequently modifying the Rust parts of Anki, you can place the
following in your user.bazelrc file to enable incremental compilation
when using ./run.
```
build --@rules_rust//:experimental_incremental_base=/home/myuser/bazel/incremental
```
The worker support is experimental, so you may need to remove it in future
updates.
## Python editing
PyCharm or IntelliJ IDEA seems to give the best Python editing experience. Make sure

View File

@ -33,11 +33,11 @@ def register_repos():
maybe(
http_archive,
name = "rules_rust",
strip_prefix = "rules_rust-anki-2021-04-09",
strip_prefix = "rules_rust-f66001a3ae396b7695e10ca451a6d89c024529a1",
urls = [
"https://github.com/ankitects/rules_rust/archive/anki-2021-04-09.tar.gz",
"https://github.com/bazelbuild/rules_rust/archive/f66001a3ae396b7695e10ca451a6d89c024529a1.zip",
],
sha256 = "2821b22e065c1b4dc73610b1d6ccbed7ed4d755b316e7e0641cd079b7abe4900",
sha256 = "c6f1fe6056d8c3ed44a4eda4b8e6d327312a0ae17b36671c10fd849825edf55f",
)
# python