mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
update rules_rust + persistent_worker
This commit is contained in:
parent
46b3b1938d
commit
fb680aa77e
3 changed files with 6 additions and 6 deletions
4
.bazelrc
4
.bazelrc
|
@ -4,6 +4,10 @@ common --experimental_repository_cache_hardlinks
|
||||||
# specify python path on Windows for pyo3 compile
|
# specify python path on Windows for pyo3 compile
|
||||||
build:windows --action_env="PYTHON_SYS_EXECUTABLE=c:\\python\\python.exe"
|
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
|
# runfiles are off by default on Windows, and we need them
|
||||||
build --enable_runfiles
|
build --enable_runfiles
|
||||||
|
|
||||||
|
|
4
defs.bzl
4
defs.bzl
|
@ -1,7 +1,6 @@
|
||||||
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
||||||
load("@bazel_skylib//lib:versions.bzl", "versions")
|
load("@bazel_skylib//lib:versions.bzl", "versions")
|
||||||
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories")
|
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("@net_ankiweb_anki//cargo:crates.bzl", "raze_fetch_remote_crates")
|
||||||
load(":python.bzl", "setup_local_python")
|
load(":python.bzl", "setup_local_python")
|
||||||
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
|
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
|
||||||
|
@ -20,12 +19,9 @@ def setup_deps():
|
||||||
|
|
||||||
rust_repositories(
|
rust_repositories(
|
||||||
edition = "2018",
|
edition = "2018",
|
||||||
use_worker = True,
|
|
||||||
version = "1.48.0",
|
version = "1.48.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
bazel_version(name = "io_bazel_rules_rust_bazel_version")
|
|
||||||
|
|
||||||
raze_fetch_remote_crates()
|
raze_fetch_remote_crates()
|
||||||
|
|
||||||
setup_local_python(name = "python")
|
setup_local_python(name = "python")
|
||||||
|
|
|
@ -46,9 +46,9 @@ def register_repos():
|
||||||
maybe(
|
maybe(
|
||||||
git_repository,
|
git_repository,
|
||||||
name = "io_bazel_rules_rust",
|
name = "io_bazel_rules_rust",
|
||||||
commit = "18608544c831f6c999f216bb23ca52cf97c04480",
|
commit = "dfd1200fcdcc0d56d725818ed3a66316517f20a6",
|
||||||
remote = "https://github.com/ankitects/rules_rust",
|
remote = "https://github.com/ankitects/rules_rust",
|
||||||
shallow_since = "1606951450 +1000",
|
shallow_since = "1607578413 +1000",
|
||||||
)
|
)
|
||||||
|
|
||||||
# python
|
# python
|
||||||
|
|
Loading…
Reference in a new issue