mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -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'
|
build --workspace_status_command='bash ./scripts/status.sh'
|
||||||
|
|
||||||
# run clippy when compiling rust in test mode
|
# 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
|
# print output when test fails
|
||||||
test --test_output=errors
|
test --test_output=errors
|
||||||
|
|
|
@ -35,7 +35,7 @@ cargo_build_script(
|
||||||
# Library
|
# Library
|
||||||
#######################
|
#######################
|
||||||
|
|
||||||
_anki_deps = glob([
|
_anki_data = glob([
|
||||||
"src/**/*.sql",
|
"src/**/*.sql",
|
||||||
"src/**/*.html",
|
"src/**/*.html",
|
||||||
"src/**/*.css",
|
"src/**/*.css",
|
||||||
|
@ -43,9 +43,7 @@ _anki_deps = glob([
|
||||||
]) + [
|
]) + [
|
||||||
"Cargo.toml", # prevents a warning about num_enum
|
"Cargo.toml", # prevents a warning about num_enum
|
||||||
"//:buildinfo.txt",
|
"//:buildinfo.txt",
|
||||||
"templates/.empty", # required for askama,
|
"templates/.empty", # required for askama
|
||||||
# ":mergeftl",
|
|
||||||
# ":protobuf_gen",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
_anki_features = [
|
_anki_features = [
|
||||||
|
@ -58,12 +56,11 @@ rust_library(
|
||||||
"src/**/*.rs",
|
"src/**/*.rs",
|
||||||
]),
|
]),
|
||||||
crate_features = _anki_features,
|
crate_features = _anki_features,
|
||||||
data = _anki_deps,
|
data = _anki_data,
|
||||||
proc_macro_deps = [
|
proc_macro_deps = [
|
||||||
"//rslib/cargo:serde_derive",
|
"//rslib/cargo:serde_derive",
|
||||||
"//rslib/cargo:serde_repr",
|
"//rslib/cargo:serde_repr",
|
||||||
],
|
],
|
||||||
tags = ["manual"],
|
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
":build_script",
|
":build_script",
|
||||||
|
@ -120,7 +117,7 @@ rust_test(
|
||||||
name = "unit_tests",
|
name = "unit_tests",
|
||||||
crate = ":anki",
|
crate = ":anki",
|
||||||
crate_features = _anki_features,
|
crate_features = _anki_features,
|
||||||
data = _anki_deps + glob([
|
data = _anki_data + glob([
|
||||||
"tests/support/**",
|
"tests/support/**",
|
||||||
]),
|
]),
|
||||||
deps = ["//rslib/cargo:env_logger"],
|
deps = ["//rslib/cargo:env_logger"],
|
||||||
|
|
Loading…
Reference in a new issue