diff --git a/repos.bzl b/repos.bzl index bb491328e..8f0f511b1 100644 --- a/repos.bzl +++ b/repos.bzl @@ -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( diff --git a/rslib/BUILD.bazel b/rslib/BUILD.bazel index c41321752..c6fc8f87a 100644 --- a/rslib/BUILD.bazel +++ b/rslib/BUILD.bazel @@ -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"],