ok/jj
1
0
Fork 0
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:
Austin Seipp 2024-06-24 22:56:52 -05:00
parent 0e53927e97
commit e56d714021
6 changed files with 16 additions and 1 deletions

View file

@ -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"

View file

@ -25,6 +25,9 @@ include = [
"/tests/cli-reference@.md.snap"
]
[lints]
workspace = true
[[bin]]
name = "jj"
path = "src/main.rs"

View file

@ -21,6 +21,8 @@ include = [
"!*.snap*",
]
[lints]
workspace = true
[[test]]
name = "runner"

View file

@ -7,5 +7,8 @@ version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
[lints]
workspace = true
[dependencies]
prost-build = { workspace = true }

View file

@ -13,6 +13,9 @@ readme = { workspace = true }
include = ["/LICENSE", "/src/"]
[lints]
workspace = true
[lib]
proc-macro = true

View file

@ -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 }