# cargo-deny configuration for nanobook
# Run with: cargo deny check

[advisories]
# Vulnerability advisories always emit errors (deny 0.19+).
# Unmaintained crates: check workspace deps only.
unmaintained = "workspace"
unsound = "all"
ignore = []

[licenses]
# All licenses denied unless explicitly allowed.
allow = [
    "MIT",
    "Apache-2.0",
    "BSD-2-Clause",
    "BSD-3-Clause",
    "ISC",
    "Unicode-3.0",
    "Unicode-DFS-2016",
    "MPL-2.0",
    "Zlib",
    "OpenSSL",
]

[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]

[bans]
multiple-versions = "warn"
wildcards = "allow"

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
