A high-performance inference engine for AI models
cargo-deny (#293)
uuuvn6e92583faa58
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex 0892eb8fa..d6c957fda 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -23,20 +23,21 @@ runs:using: compositesteps:- uses: dtolnay/rust-toolchain@stable- - uses: dtolnay/rust-toolchain@nightly+ - if: inputs.linters == 'true'+ uses: dtolnay/rust-toolchain@nightlywith:components: rustfmt- - if: inputs.nextest == 'true'- uses: taiki-e/install-action@nextest- if: inputs.linters == 'true'run: |- arch -arm64 brew install clang-format+ arch -arm64 brew install clang-format cargo-denyshell: bash- if: inputs.metal == 'true'run: |arch -arm64 brew install cmakexcodebuild -downloadComponent MetalToolchainshell: bash+ - if: inputs.nextest == 'true'+ uses: taiki-e/install-action@nextest- if: inputs.test_model == 'true'uses: astral-sh/setup-uv@v7with:diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex d1150ccf5..5f85b6a30 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -46,6 +46,10 @@ jobs:cargo metadata --locked --format-version=1 > /dev/nullgit diff --exit-code -- Cargo.lock+ - name: Check with cargo-deny+ if: ${{ always() && steps.setup.outcome == 'success' }}+ run: cargo deny check+tests:name: ${{ matrix.backend }} ${{ matrix.tracing && ' (tracing)' || '' }} ${{ matrix.audio && ' (audio-runtime)' || '' }}runs-on: [ self-hosted, macos, x64, mac, m3max, runner1 ]diff --git a/crates/benchmarks/Cargo.toml b/crates/benchmarks/Cargo.tomlindex c8ef2bcba..db37005d9 100644--- a/crates/benchmarks/Cargo.toml+++ b/crates/benchmarks/Cargo.toml@@ -2,6 +2,10 @@name = "benchmarks"version.workspace = trueedition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true[dependencies]uzu.workspace = truediff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.tomlindex 81444099b..012a92188 100644--- a/crates/cli/Cargo.toml+++ b/crates/cli/Cargo.toml@@ -2,6 +2,10 @@name = "cli"version.workspace = trueedition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true[[bin]]name = "cli"diff --git a/crates/uzu/Cargo.toml b/crates/uzu/Cargo.tomlindex 791bfc9dc..873f2595d 100644--- a/crates/uzu/Cargo.toml+++ b/crates/uzu/Cargo.toml@@ -2,6 +2,10 @@name = "uzu"version.workspace = trueedition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = truebuild = "build/main.rs"[dependencies]diff --git a/deny.toml b/deny.tomlnew file mode 100644index 000000000..dab26902d--- /dev/null+++ b/deny.toml@@ -0,0 +1,23 @@+[advisories]+ignore = [+ "RUSTSEC-2024-0370", # proc-macro-error is unmaintained+ "RUSTSEC-2024-0436", # paste - no longer maintained+ "RUSTSEC-2024-0375", # `atty` is unmaintained+]++[licenses]+allow = [+ "MIT",+ "BSD-2-Clause",+ "BSD-3-Clause",+ "Apache-2.0",+ "MPL-2.0",+ "ISC",+ "Zlib",+ "BSL-1.0",+ "CDLA-Permissive-2.0",+ "Unicode-3.0"+]++[bans]+multiple-versions = "allow"