From 8955f7aefae59121de660df97fe047060b3cbe30 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 01:16:37 +0000 Subject: [PATCH] chore(deps): add owner-reviewable deny.toml and versioned path deps Adds the cargo-deny licence/bans/sources policy the estate rust-ci reusable switches on when deny.toml exists. Allowlist is the permissive set present in Cargo.lock at adoption; copyleft is absent. Path deps on typed-wasm and echidna-core gain the version each crate declares so the wildcard ban passes without relaxing it. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_0136P7ZkqCNUotDR2GTtx8G3 --- Cargo.toml | 4 ++-- deny.toml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 deny.toml diff --git a/Cargo.toml b/Cargo.toml index 228eba6d..e693fbd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -105,14 +105,14 @@ rustfft = "6" # Provides the pure parse/analyse engine; provers/typed_wasm.rs is a thin # adapter that maps its `Analysis` onto echidna core types, and routes the # 39 *TypeChecker discipline variants through discipline-specific TypeInfo. -typed-wasm = { path = "crates/typed_wasm" } +typed-wasm = { path = "crates/typed_wasm", version = "0.1.0" } # Canonical Term / Goal / ProofState / Tactic / TypeInfo types. # Extracted so vcl-ut (and any other proof-exchange client) can share them # without pulling in the full echidna binary. The `core` and `types` # modules in this crate are re-exported from lib.rs so downstream # `use crate::core::*` / `use crate::types::*` paths keep working. -echidna-core = { path = "crates/echidna-core" } +echidna-core = { path = "crates/echidna-core", version = "0.2.0" } [features] default = [] diff --git a/deny.toml b/deny.toml new file mode 100644 index 00000000..d46222c5 --- /dev/null +++ b/deny.toml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: MPL-2.0 +# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) +# +# cargo-deny policy for the root workspace (Cargo.lock). +# +# The estate rust-ci reusable runs `cargo deny check advisories bans sources` +# unconditionally and adds `licenses` only when this file exists, because +# licence policy is owner-authored and the gate never invents one. This file +# is that policy. Advisories need no configuration here: a RustSec advisory is +# an error unless a reviewed `ignore` entry says otherwise, and none is set. +# +# fuzz/ is excluded from the workspace and has its own lockfile; it is audited +# by scripts/ci/audit-dependencies.sh, not by this file. +# +# Run locally: cargo deny --all-features --locked check + +[graph] +all-features = true + +[licenses] +# Permissive licences found in the dependency graph at adoption. Copyleft is +# deliberately absent. `r-efi` is `MIT OR Apache-2.0 OR LGPL-2.1-or-later`, so +# it passes through its MIT arm without LGPL being allowed. +allow = [ + "Apache-2.0", + "Apache-2.0 WITH LLVM-exception", + "BSD-2-Clause", + "BSD-3-Clause", + "BSL-1.0", + "CC0-1.0", + # Owner to confirm: webpki-roots ships CA data under CDLA-Permissive-2.0. + "CDLA-Permissive-2.0", + "ISC", + "MIT", + "MIT-0", + # Project licence, and `colored` (a dependency). + "MPL-2.0", + "Unicode-3.0", + "Unlicense", + "Zlib", +] +confidence-threshold = 0.93 + +[bans] +# 11 duplicate crates at adoption (getrandom x3, syn, sha2, digest, ...), all +# from upstream version skew. Warn so they stay visible; `deny` would need a +# skip list that rots. +multiple-versions = "warn" +# Path dependencies between workspace members carry no version requirement. +wildcards = "deny" +allow-wildcard-paths = true + +[sources] +# Every dependency resolves from crates.io today (no git or alternative +# registry in Cargo.lock). Keep it that way. +unknown-registry = "deny" +unknown-git = "deny" +allow-registry = ["https://github.com/rust-lang/crates.io-index"] +allow-git = []