[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "deny"
yanked = "deny"
notice = "deny"
ignore = [
    "RUSTSEC-2020-0056", # from gilrs v0.8.1 - unmaintained - https://github.com/koute/stdweb/issues/403
    "RUSTSEC-2020-0095", # from crevice dev dependency - unmaintained - https://github.com/johannhof/difference.rs/issues/45
    "RUSTSEC-2021-0119", # from rodio 0.14.0 - unsafety - https://github.com/nix-rust/nix/issues/1541
]

[licenses]
unlicensed = "deny"
copyleft = "deny"
allow = [
    "MIT",
    "Apache-2.0",
    "BSD-3-Clause",
    "ISC",
    "Zlib",
    "0BSD",
    "BSD-2-Clause",
    "CC0-1.0",
]
default = "deny"

[[licenses.clarify]]
name = "stretch"
expression = "MIT"
license-files = []

[bans]
multiple-versions = "deny"
wildcards = "deny"
highlight = "all"
# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
    { name = "cfg-if", version = "0.1" },               # from winit v0.26.0
    { name = "core-foundation", version = "0.6" },      # from gilrs v0.8.1
    { name = "core-foundation", version = "0.7" },      # from winit v0.26.0
    { name = "core-foundation-sys", version = "0.6" },  # from gilrs v0.8.1
    { name = "core-foundation-sys", version = "0.7" },  # from winit v0.26.0
    { name = "core-graphics", version = "0.19" },       # from winit v0.26.0
    { name = "darling", version = "0.10" },             # from rodio v0.14.0
    { name = "darling_core", version = "0.10" },        # from rodio v0.14.0
    { name = "darling_macro", version = "0.10" },       # from rodio v0.14.0
    { name = "mach", version = "0.2" },                 # from gilrs v0.8.1
    { name = "mio", version = "0.7" },                  # from notify v5.0.0-pre.11
    { name = "ndk", version = "0.3" },                  # from rodio v0.14.0
    { name = "ndk", version = "0.4" },                  # from rodio v0.14.0
    { name = "ndk-macro", version = "0.2" },            # from rodio v0.14.0
    { name = "ndk-glue", version = "0.3" },             # from rodio v0.14.0
    { name = "ndk-glue", version = "0.4" },             # from rodio v0.14.0
    { name = "nix", version = "0.20" },                 # from rodio v0.14.0
    { name = "proc-macro-crate", version = "0.1" },     # from rodio v0.14.0
    { name = "stdweb", version = "0.1" },               # from rodio v0.14.0
    { name = "strsim", version = "0.9" },               # from rodio v0.14.0
]

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