deny.toml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Root options
  2. # The graph table configures how the dependency graph is constructed and thus
  3. # which crates the checks are performed against
  4. [graph]
  5. # If true, metadata will be collected with `--all-features`. Note that this can't
  6. # be toggled off if true, if you want to conditionally enable `--all-features` it
  7. # is recommended to pass `--all-features` on the cmd line instead
  8. all-features = true
  9. # This section is considered when running `cargo deny check licenses`
  10. # More documentation for the licenses section can be found here:
  11. # https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
  12. [licenses]
  13. # List of explicitly allowed licenses
  14. # See https://spdx.org/licenses/ for list of possible licenses
  15. # [possible values: any SPDX 3.11 short identifier (+ optional exception)].
  16. allow = [
  17. "MIT",
  18. "Apache-2.0",
  19. "MPL-2.0",
  20. "BSD-3-Clause",
  21. "Zlib",
  22. "Unicode-3.0",
  23. ]
  24. # The confidence threshold for detecting a license from license text.
  25. # The higher the value, the more closely the license text must be to the
  26. # canonical license text of a valid SPDX license file.
  27. # [possible values: any between 0.0 and 1.0].
  28. confidence-threshold = 1.0
  29. # Allow 1 or more licenses on a per-crate basis, so that particular licenses
  30. # aren't accepted for every possible crate as with the normal allow list
  31. exceptions = [
  32. # Each entry is the crate and version constraint, and its specific allow
  33. # list
  34. { allow = ["AGPL-3.0-only"], crate = "libthreema" },
  35. { allow = ["AGPL-3.0-only"], crate = "libthreema-macros" },
  36. # allow our own crate tools/uniffi-bindgen
  37. { allow = ["AGPL-3.0-only"], crate = "uniffi-bindgen" },
  38. ]
  39. # This section is considered when running `cargo deny check bans`.
  40. # More documentation about the 'bans' section can be found here:
  41. # https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
  42. [bans]
  43. # Lint level for when multiple versions of the same crate are detected
  44. multiple-versions = "allow"