mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
manual tag on rslib was preventing clippy lints
This commit is contained in:
parent
d7cded4ae1
commit
b55fd93cab
2 changed files with 5 additions and 8 deletions
2
.bazelrc
2
.bazelrc
|
@ -14,7 +14,7 @@ build:windows --build_python_zip=false
|
|||
build --workspace_status_command='bash ./scripts/status.sh'
|
||||
|
||||
# run clippy when compiling rust in test mode
|
||||
test --aspects=@io_bazel_rules_rust//rust:rust.bzl%rust_clippy_aspect --output_groups=clippy_checks
|
||||
test --aspects=@io_bazel_rules_rust//rust:rust.bzl%rust_clippy_aspect --output_groups=+clippy_checks
|
||||
|
||||
# print output when test fails
|
||||
test --test_output=errors
|
||||
|
|
|
@ -35,7 +35,7 @@ cargo_build_script(
|
|||
# Library
|
||||
#######################
|
||||
|
||||
_anki_deps = glob([
|
||||
_anki_data = glob([
|
||||
"src/**/*.sql",
|
||||
"src/**/*.html",
|
||||
"src/**/*.css",
|
||||
|
@ -43,9 +43,7 @@ _anki_deps = glob([
|
|||
]) + [
|
||||
"Cargo.toml", # prevents a warning about num_enum
|
||||
"//:buildinfo.txt",
|
||||
"templates/.empty", # required for askama,
|
||||
# ":mergeftl",
|
||||
# ":protobuf_gen",
|
||||
"templates/.empty", # required for askama
|
||||
]
|
||||
|
||||
_anki_features = [
|
||||
|
@ -58,12 +56,11 @@ rust_library(
|
|||
"src/**/*.rs",
|
||||
]),
|
||||
crate_features = _anki_features,
|
||||
data = _anki_deps,
|
||||
data = _anki_data,
|
||||
proc_macro_deps = [
|
||||
"//rslib/cargo:serde_derive",
|
||||
"//rslib/cargo:serde_repr",
|
||||
],
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":build_script",
|
||||
|
@ -120,7 +117,7 @@ rust_test(
|
|||
name = "unit_tests",
|
||||
crate = ":anki",
|
||||
crate_features = _anki_features,
|
||||
data = _anki_deps + glob([
|
||||
data = _anki_data + glob([
|
||||
"tests/support/**",
|
||||
]),
|
||||
deps = ["//rslib/cargo:env_logger"],
|
||||
|
|
Loading…
Reference in a new issue