From 2bfb0c9286de07c8b9a91874c457dde2d4bf0505 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 21 Jun 2021 12:12:59 +1000 Subject: [PATCH] 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 --- defs.bzl | 2 +- docs/development.md | 11 ----------- repos.bzl | 6 +++--- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/defs.bzl b/defs.bzl index 8d13c6e57..b3f5441bc 100644 --- a/defs.bzl +++ b/defs.bzl @@ -20,7 +20,7 @@ def setup_deps(): rust_repositories( edition = "2018", - version = "1.51.0", + include_rustc_srcs = True, ) raze_fetch_remote_crates() diff --git a/docs/development.md b/docs/development.md index e353d0977..f9247906e 100644 --- a/docs/development.md +++ b/docs/development.md @@ -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 diff --git a/repos.bzl b/repos.bzl index 8bcb75637..3757bff80 100644 --- a/repos.bzl +++ b/repos.bzl @@ -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