Files
winit/deny.toml
T
dotCooCoo 29ab80ea62 CI: fix the typos, lockfile and cargo-deny failures on craft/0.30.13
- typos.toml ignores the commit SHA 6a87addd, which typos reads as the
  word "addd" in PATCHES.md and docs/egui-037-migration-plan.md.
- The "Generate lockfile" step pins syn as syn@2, since syn 2 and syn 3
  are now both locked, and pins serde 1.0.228, foreign-types-macros
  0.2.3 and tracing-web 0.1.3, whose newer releases need syn 3 or a
  newer wasm-bindgen. On the 1.70.0 jobs the step resolves with
  CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback, so the lockfile
  only holds versions whose rust-version allows 1.70.0, and the
  wasm-bindgen crates move back to 0.2.105.
- deny.toml skips the second versions of syn, thiserror,
  thiserror-impl, jni-sys and redox_syscall, and allows
  android-activity 0.6.1's import-games-sdk.sh by checksum.
2026-11-22 23:25:43 -08:00

87 lines
3.1 KiB
TOML

# https://embarkstudios.github.io/cargo-deny
# cargo install cargo-deny
# cargo update && cargo deny --target aarch64-apple-ios check
# Note: running just `cargo deny check` without a `--target` will result in
# false positives due to https://github.com/EmbarkStudios/cargo-deny/issues/324
[graph]
all-features = true
exclude-dev = true
targets = [
{ triple = "aarch64-apple-ios" },
{ triple = "aarch64-linux-android" },
{ triple = "i686-pc-windows-gnu" },
{ triple = "i686-pc-windows-msvc" },
{ triple = "i686-unknown-linux-gnu" },
{ triple = "wasm32-unknown-unknown", features = [
"atomics",
] },
{ triple = "x86_64-apple-darwin" },
{ triple = "x86_64-apple-ios" },
{ triple = "x86_64-pc-windows-gnu" },
{ triple = "x86_64-pc-windows-msvc" },
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "x86_64-unknown-redox" },
]
[licenses]
allow = [
"Apache-2.0", # https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)
"BSD-2-Clause", # https://tldrlegal.com/license/bsd-2-clause-license-(freebsd)
"BSD-3-Clause", # https://tldrlegal.com/license/bsd-3-clause-license-(revised)
"ISC", # https://tldrlegal.com/license/isc-license
"MIT", # https://tldrlegal.com/license/mit-license
"Unicode-3.0", # https://spdx.org/licenses/Unicode-3.0.html
]
confidence-threshold = 1.0
private = { ignore = true }
[bans]
multiple-versions = "deny"
skip = [
{ crate = "raw-window-handle", reason = "we depend on multiple behind features" },
{ crate = "bitflags@1", reason = "the ecosystem is in the process of migrating" },
{ crate = "rustix@0.38", reason = "the ecosystem is in the process of migrating" },
{ crate = "linux-raw-sys@0.4", reason = "the ecosystem is in the process of migrating" },
{ crate = "syn@2", reason = "the ecosystem is in the process of migrating" },
{ crate = "thiserror@1", reason = "the ecosystem is in the process of migrating" },
{ crate = "thiserror-impl@1", reason = "the ecosystem is in the process of migrating" },
{ crate = "jni-sys@0.3", reason = "jni-sys 0.3.1 depends on jni-sys 0.4" },
{ crate = "redox_syscall@0.4", reason = "winit and orbclient depend on different versions" },
]
wildcards = "allow" # at least until https://github.com/EmbarkStudios/cargo-deny/issues/241 is fixed
[bans.build]
include-archives = true
interpreted = "deny"
[[bans.build.bypass]]
allow = [
{ path = "generate-bindings.sh", checksum = "268ec23248218d779e33853cdc60e2985e70214ff004716cd734270de1f6b561" },
{ path = "android-games-sdk/import-games-sdk.sh", checksum = "98ed2741804d10ddbd8d035557897ab1edc5257705759377271dcb4ba5636446" },
]
crate = "android-activity"
[[bans.build.bypass]]
allow-globs = ["ci/*", "githooks/*", "cargo.sh"]
crate = "zerocopy"
[[bans.build.bypass]]
allow-globs = ["freetype2/*"]
crate = "freetype-sys"
[[bans.build.bypass]]
allow-globs = ["lib/*.a"]
crate = "windows_i686_gnu"
[[bans.build.bypass]]
allow-globs = ["lib/*.lib"]
crate = "windows_i686_msvc"
[[bans.build.bypass]]
allow-globs = ["lib/*.a"]
crate = "windows_x86_64_gnu"
[[bans.build.bypass]]
allow-globs = ["lib/*.lib"]
crate = "windows_x86_64_msvc"