From fb680aa77e5fe3bd66adef7f2fdede21990b0995 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 10 Dec 2020 15:35:37 +1000 Subject: [PATCH] update rules_rust + persistent_worker --- .bazelrc | 4 ++++ defs.bzl | 4 ---- repos.bzl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.bazelrc b/.bazelrc index 4f9c63927..f40fd1749 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,6 +4,10 @@ common --experimental_repository_cache_hardlinks # specify python path on Windows for pyo3 compile build:windows --action_env="PYTHON_SYS_EXECUTABLE=c:\\python\\python.exe" +# worker config +build --@io_bazel_rules_rust//worker:use_worker=True +build:windows --worker_quit_after_build + # runfiles are off by default on Windows, and we need them build --enable_runfiles diff --git a/defs.bzl b/defs.bzl index 8df93f43b..872b136fc 100644 --- a/defs.bzl +++ b/defs.bzl @@ -1,7 +1,6 @@ load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") load("@bazel_skylib//lib:versions.bzl", "versions") load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") -load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version") load("@net_ankiweb_anki//cargo:crates.bzl", "raze_fetch_remote_crates") load(":python.bzl", "setup_local_python") load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") @@ -20,12 +19,9 @@ def setup_deps(): rust_repositories( edition = "2018", - use_worker = True, version = "1.48.0", ) - bazel_version(name = "io_bazel_rules_rust_bazel_version") - raze_fetch_remote_crates() setup_local_python(name = "python") diff --git a/repos.bzl b/repos.bzl index 725b927a6..7cf84b6f3 100644 --- a/repos.bzl +++ b/repos.bzl @@ -46,9 +46,9 @@ def register_repos(): maybe( git_repository, name = "io_bazel_rules_rust", - commit = "18608544c831f6c999f216bb23ca52cf97c04480", + commit = "dfd1200fcdcc0d56d725818ed3a66316517f20a6", remote = "https://github.com/ankitects/rules_rust", - shallow_since = "1606951450 +1000", + shallow_since = "1607578413 +1000", ) # python