update rules_rust for separate compile_data arg

This commit is contained in:
Damien Elmes 2020-12-01 15:26:09 +10:00
parent 9a1ddec553
commit 7ddc8ecd01
2 changed files with 6 additions and 5 deletions

View File

@ -41,9 +41,9 @@ def register_repos():
maybe(
git_repository,
name = "io_bazel_rules_rust",
commit = "504cde54248f518d5c98eb9f1e8db3546904ecb2",
commit = "b610a69466c12bd3740398f1bf0c766df6951eff",
remote = "https://github.com/ankitects/rules_rust",
shallow_since = "1606199575 +1000",
shallow_since = "1606797881 +1000",
)
# native.local_repository(

View File

@ -35,7 +35,7 @@ cargo_build_script(
# Library
#######################
_anki_data = glob([
_anki_compile_data = glob([
"src/**/*.sql",
"src/**/*.html",
"src/**/*.css",
@ -55,8 +55,8 @@ rust_library(
srcs = glob([
"src/**/*.rs",
]),
compile_data = _anki_compile_data,
crate_features = _anki_features,
data = _anki_data,
proc_macro_deps = [
"//rslib/cargo:serde_derive",
"//rslib/cargo:serde_repr",
@ -115,9 +115,10 @@ rust_library(
rust_test(
name = "unit_tests",
compile_data = _anki_compile_data,
crate = ":anki",
crate_features = _anki_features,
data = _anki_data + glob([
data = glob([
"tests/support/**",
]),
deps = ["//rslib/cargo:env_logger"],