forked from mirrors/jj
cargo: suppress warnings for cfg(buck_build)
This cfg value isn't understood by Cargo, so it needs to have the warning suppressed by default. We could also add an entry to `build.rs` too, but not every package has one. To be used by upcoming diffs. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
0e53927e97
commit
e56d714021
6 changed files with 16 additions and 1 deletions
|
@ -16,6 +16,9 @@ documentation = "https://martinvonz.github.io/jj/"
|
|||
categories = ["version-control", "development-tools"]
|
||||
keywords = ["VCS", "DVCS", "SCM", "Git", "Mercurial"]
|
||||
|
||||
[workspace.lints.rust]
|
||||
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(buck_build)'] }
|
||||
|
||||
[workspace.dependencies]
|
||||
anyhow = "1.0.86"
|
||||
assert_cmd = "2.0.8"
|
||||
|
|
|
@ -25,6 +25,9 @@ include = [
|
|||
"/tests/cli-reference@.md.snap"
|
||||
]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "jj"
|
||||
path = "src/main.rs"
|
||||
|
|
|
@ -21,6 +21,8 @@ include = [
|
|||
"!*.snap*",
|
||||
]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[[test]]
|
||||
name = "runner"
|
||||
|
|
|
@ -7,5 +7,8 @@ version = { workspace = true }
|
|||
edition = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
prost-build = { workspace = true }
|
||||
|
|
|
@ -13,6 +13,9 @@ readme = { workspace = true }
|
|||
|
||||
include = ["/LICENSE", "/src/"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@ repository = { workspace = true }
|
|||
documentation = { workspace = true }
|
||||
readme = { workspace = true }
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
async-trait = { workspace = true }
|
||||
|
|
Loading…
Reference in a new issue