Skip to content

armgit / uzu

Public Imported from GitHub
0

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.yml
index 0892eb8fa..d6c957fda 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -23,20 +23,21 @@ runs:
using: composite
steps:
- uses: dtolnay/rust-toolchain@stable
- - uses: dtolnay/rust-toolchain@nightly
+ - if: inputs.linters == 'true'
+ uses: dtolnay/rust-toolchain@nightly
with:
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-deny
shell: bash
- if: inputs.metal == 'true'
run: |
arch -arm64 brew install cmake
xcodebuild -downloadComponent MetalToolchain
shell: bash
+ - if: inputs.nextest == 'true'
+ uses: taiki-e/install-action@nextest
- if: inputs.test_model == 'true'
uses: astral-sh/setup-uv@v7
with:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 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/null
git 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.toml
index c8ef2bcba..db37005d9 100644
--- a/crates/benchmarks/Cargo.toml
+++ b/crates/benchmarks/Cargo.toml
@@ -2,6 +2,10 @@
name = "benchmarks"
version.workspace = true
edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+authors.workspace = true
+repository.workspace = true
[dependencies]
uzu.workspace = true
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index 81444099b..012a92188 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -2,6 +2,10 @@
name = "cli"
version.workspace = true
edition.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.toml
index 791bfc9dc..873f2595d 100644
--- a/crates/uzu/Cargo.toml
+++ b/crates/uzu/Cargo.toml
@@ -2,6 +2,10 @@
name = "uzu"
version.workspace = true
edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+authors.workspace = true
+repository.workspace = true
build = "build/main.rs"
[dependencies]
diff --git a/deny.toml b/deny.toml
new file mode 100644
index 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"