# Copyright 2025, 2026 Element Creations Ltd. # Copyright 2025 New Vector Ltd. # # SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial # Please see LICENSE files in the repository root for full details. [graph] targets = [ { triple = "x86_64-unknown-linux-gnu" }, { triple = "aarch64-unknown-linux-gnu" }, { triple = "x86_64-apple-darwin" }, { triple = "aarch64-apple-darwin" }, ] [advisories] version = 2 db-path = "~/.cargo/advisory-db" db-urls = ["https://github.com/rustsec/advisory-db"] ignore = [ # RSA key extraction "Marvin Attack". This is only relevant when using # PKCS#1 v1.5 encryption, which we don't "RUSTSEC-2023-0071", ] [licenses] version = 2 allow = [ "LicenseRef-Element-Commercial", "0BSD", "Apache-2.0 WITH LLVM-exception", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "ISC", "MIT", "MPL-2.0", "Unicode-3.0", "Zlib", "CDLA-Permissive-2.0", ] [bans] # List of crates to deny deny = [ # We should never depend on openssl { name = "openssl" }, { name = "openssl-sys" }, { name = "native-tls" }, ] # We try to avoid duplicating crates and track exceptions here multiple-versions = "deny" skip = [ { name = "itertools", version = "0.13.0" }, # zxcvbn depends on this old version { name = "hashbrown", version = "0.14.5" }, # a few crates depend on this old version # a few dependencies depend on the 1.x version of thiserror { name = "thiserror", version = "1.0.69" }, { name = "thiserror-impl", version = "1.0.69" }, # axum-macros, sqlx-macros and sea-query-attr use an old version { name = "heck", version = "0.4.1" }, # pad depends on an old version { name = "unicode-width", version = "0.1.14" }, # cron depends on this old version # https://github.com/zslayton/cron/pull/137 { name = "winnow", version = "0.6.20" }, # hyper-util -> system-configuration depends on this old version { name = "core-foundation", version = "0.9.4" }, # We are still mainly using rand 0.8 { name = "rand", version = "0.8.5" }, { name = "rand_chacha", version = "0.3.1" }, { name = "rand_core", version = "0.6.4" }, { name = "getrandom", version = "0.2.15" }, ] skip-tree = [] # We should never enable the (default) `oldtime` feature of `chrono` [[bans.features]] name = "chrono" deny = ["oldtime"] [sources] unknown-registry = "warn" unknown-git = "warn" allow-registry = ["https://github.com/rust-lang/crates.io-index"]