[graphics]
target-all = false

[source.crates-io]
replace-with = "crates-io-sparse"
[source."https://github.com/rust-lang/crates.io-index"]
replace-with = "crates-io-sparse"
[source.crates-io-sparse]
registry = "https://index.crates.io/"

[licenses]
allow = ["MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "ISC", "Unicode-DFS-2016", "0BSD"]
deny = ["GPL-2.0", "GPL-3.0", "AGPL-3.0"]
unlicensed = "deny"
private = { registries = [] }

[bans]
multiple-versions = "warn"
wildcards = "allow"
# Deny certain crates known to be problematic
skip = [
    { name = "openssl-sys", versions = ["<=0.6.7"] },
    { name = "ring", versions = ["<=0.17.0"] },
]
# Deny crates that are unmaintained or have known security issues
deny = [
    # Add specific problematic crates as needed
]

[advisories]
ignore = [
    # Add advisory IDs to ignore (use sparingly)
]

[metadata]
# Allow yanked crates only for specific reasons
allow-yanked = false
