tree: cd939a1ac8fd2811d0c89533038b4943bb5f5772 [path history] [tgz]
  1. src/
  2. Cargo.lock
  3. Cargo.toml
  4. deny.toml
  5. README.md
examples/07_deny_sources/README.md

07_deny_sources

This example shows how to use cargo-deny to deny and only support explicitly allowed sources for crates

Config

[dependencies]
bitflags = { git = "https://github.com/bitflags/bitflags.git" }
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-git = [
    "https://github.com/bitflags/bitflags.git"
]

Description

TODO