Skip to content

Commit

Permalink
Silence warnings for example/test dependencies (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre authored May 3, 2022
1 parent b04fe3b commit bddc4bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ rust_library(
name = "libc",
srcs = glob(["src/**/*.rs"]),
edition = "2015",
rustc_flags = [
# In most cases, warnings in 3rd party crates are not interesting as
# they're out of the control of consumers. The flag here silences
# warnings. For more details see:
# https://doc.rust-lang.org/rustc/lints/levels.html
"--cap-lints=allow",
],
visibility = ["//visibility:public"],
)
"""
Expand Down
7 changes: 7 additions & 0 deletions test/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ rust_library(
name = "libc",
srcs = glob(["src/**/*.rs"]),
edition = "2015",
rustc_flags = [
# In most cases, warnings in 3rd party crates are not interesting as
# they're out of the control of consumers. The flag here silences
# warnings. For more details see:
# https://doc.rust-lang.org/rustc/lints/levels.html
"--cap-lints=allow",
],
visibility = ["//visibility:public"],
)
"""
Expand Down

0 comments on commit bddc4bd

Please sign in to comment.