deps: tier law, rustls-only, machete and audit gates, dep cleanup
c49430de73d9b3b6da611397c391bf3ecdc00b36
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 85dfea5cd6ce
There are many coding harnesses - but this one is fast
c49430de73d9b3b6da611397c391bf3ecdc00b36
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+327 / −422 text lines
+19 / −0 text lines
## Dependencies- The sanctioned set lives in `[workspace.dependencies]`, grouped by tier; member crates reference entries, never pin versions locally.- Tiers: - vocabulary: ecosystem trait and IR crates; sanctioned once; facade-exempt. - engines: large-surface crates; each owned by exactly one workspace crate; app vocabulary at boundaries; one stack per concern. - leaf utilities: small crates used directly. - build tools: external binaries installed by xtask with `--locked`; never crate dependencies.- External types never appear in public workspace-crate APIs; vocabulary derives on own types are the exemption.- Prefer std and first-party code; engines only for hard-to-get-right domains.- Pure Rust over system dependencies.- `default-features = false` unless the feature is the point; enabled features are named.- No git dependencies; released versions only.- Determinism boundary: nothing on session, replay, or provider paths adds ambient time, randomness, or iteration-order dependence.- Network and filesystem I/O never run on the render thread.- Unused dependencies are flagged by `cargo x check` and removed.- Upgrades are deliberate: `cargo update` in its own commit; lockfile committed.- Enforcement is mechanical; humans judge principles, never gatekeep entries.+167 / −372 text lines
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" "core-foundation-sys",[[package]]name = "core-foundation"version = "0.10.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"dependencies = [ "core-foundation-sys", "libc",][[package]]name = "core-foundation-sys"version = "0.8.7"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"[[package]]name = "core_detect"version = "1.0.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"[[package]]name = "encoding_rs"version = "0.8.41"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7b5ef0006ac9ab233c38522f5ae99cae3625151de8f706cacee1cba4b8e2832a"dependencies = [ "cfg-if", "core_detect", "multiversion", "multiversion_no_op", "rustversion", "scopeguard", "simdutf8",][[package]]name = "errno"version = "0.3.14"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = [ "libc", "windows-sys 0.61.2",][[package]]name = "fastrand"version = "2.5.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"[[package]]name = "fnv"version = "1.0.7"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"[[package]]name = "foreign-types"version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"dependencies = [ "foreign-types-shared",][[package]]name = "foreign-types-shared"version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" "js-sys", "wasm-bindgen", "js-sys",[[package]]name = "h2"version = "0.4.19"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16"dependencies = [ "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", "http", "indexmap", "slab", "tokio", "tokio-util", "tracing",] "h2",][[package]]name = "hyper-tls"version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"dependencies = [ "bytes", "http-body-util", "hyper", "hyper-util", "native-tls", "tokio", "tokio-native-tls", "tower-service", "webpki-roots", "system-configuration", "windows-registry",[[package]]name = "multiversion"version = "0.9.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b4ca4bea16ffc3f443cf7d866912118196bfef4c6a1556ca00f9f9b00bb43f7c"dependencies = [ "multiversion-macros",][[package]]name = "multiversion-macros"version = "0.9.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0d416831a7317ef4b08bee00b69cbbb9c8763da7959a7026244d6266869f9c83"dependencies = [ "proc-macro2", "quote", "rustversion", "syn 3.0.5",][[package]]name = "multiversion_no_op"version = "1.0.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"[[package]]name = "native-tls"version = "0.2.18"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"dependencies = [ "libc", "log", "openssl", "openssl-probe", "openssl-sys", "schannel", "security-framework", "security-framework-sys", "tempfile",][[package]]name = "openssl"version = "0.10.81"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"dependencies = [ "bitflags", "cfg-if", "foreign-types", "libc", "openssl-macros", "openssl-sys",][[package]]name = "openssl-macros"version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"dependencies = [ "proc-macro2", "quote", "syn 2.0.119",][[package]]name = "openssl-probe"version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"[[package]]name = "openssl-sys"version = "0.9.117"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"dependencies = [ "cc", "libc", "pkg-config", "vcpkg",][[package]]name = "quinn"version = "0.11.12"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11"dependencies = [ "bytes", "cfg_aliases", "pin-project-lite", "quinn-proto", "quinn-udp", "rustc-hash", "rustls", "socket2", "thiserror 2.0.21", "tokio", "tracing", "web-time",][[package]]name = "quinn-proto"version = "0.11.18"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc"dependencies = [ "bytes", "getrandom 0.4.3", "lru-slab", "rand", "rand_pcg", "ring", "rustc-hash", "rustls", "rustls-pki-types", "slab", "thiserror 2.0.21", "tinyvec", "tracing", "web-time",][[package]]name = "quinn-udp"version = "0.5.15"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"dependencies = [ "cfg_aliases", "libc", "once_cell", "socket2", "tracing", "windows-sys 0.61.2",][[package]]name = "rand"version = "0.10.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"dependencies = [ "chacha20", "getrandom 0.4.3", "rand_core",][[package]]name = "rand_core"version = "0.10.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"[[package]]name = "rand_pcg"version = "0.10.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"dependencies = [ "rand_core",] "encoding_rs", "h2", "hyper-tls", "webpki-roots",checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", "windows-sys 0.61.2",]checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba"checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" "ring", "web-time",[[package]]name = "schannel"version = "0.1.29"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"dependencies = [ "windows-sys 0.61.2",][[package]]name = "scopeguard"version = "1.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "security-framework"version = "3.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"dependencies = [ "bitflags", "core-foundation 0.10.1", "core-foundation-sys", "libc", "security-framework-sys",][[package]]name = "security-framework-sys"version = "2.17.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"dependencies = [ "core-foundation-sys", "libc",] "uuid", "serde", "smith-tui",[[package]]name = "system-configuration"version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"dependencies = [ "bitflags", "core-foundation 0.9.4", "system-configuration-sys",][[package]]name = "system-configuration-sys"version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"dependencies = [ "core-foundation-sys", "libc",][[package]]name = "tempfile"version = "3.27.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"dependencies = [ "fastrand", "getrandom 0.4.3", "once_cell", "rustix", "windows-sys 0.61.2",] "thiserror-impl", "libc",[[package]]name = "web-time"version = "1.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"dependencies = [ "js-sys", "wasm-bindgen",][[package]]name = "webpki-roots"version = "1.0.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"dependencies = [ "rustls-pki-types",][[package]]name = "windows-registry"version = "0.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"dependencies = [ "windows-link", "windows-result", "windows-strings",][[package]]name = "windows-result"version = "0.4.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"dependencies = [ "windows-link",][[package]]name = "windows-strings"version = "0.5.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"dependencies = [ "windows-link",]+58 / −30 text lines
# Dependency tiers — law in .system/RULES.md (Dependencies); concrete map lives here.# vocabulary: ecosystem IR, sanctioned once, facade-exempt.# engines: one owning crate each, app vocabulary at boundaries, one stack per concern.# leaf: small utilities, direct use.# dev: tests and benches only.# build tools (cargo-machete, cargo-deny, cargo-audit, wasm-tools, pup):# xtask-installed --locked, never crate deps.# vocabularytokio = { version = "1", features = ["full"] }clap = { version = "4", features = ["derive"] }clap_complete = "4"crossterm = "0.28"ratatui = "0.29"ciborium = "0.2"futures = "0.3"tracing-subscriber = { version = "0.3", features = ["env-filter"] }reqwest = { version = "0.12", features = ["json", "stream"] }futures = "0.3"unicode-width = "0.2"unicode-segmentation = "1"syntastica = { version = "0.6", default-features = false, features = ["runtime-c2rust"] }syntastica-parsers = "0.6"fuzzy-matcher = "0.3"similar = "2"ignore = "0.4"grep = "0.4"grep-regex = "0.1"grep-searcher = "0.1"gix = { version = "0.83", default-features = false, features = ["blame", "blob-diff", "revision"] }# enginesreqwest = { version = "0.12", default-features = false, features = [ "json", "stream", "blocking", "rustls-tls",] } # smith-ai, http stackciborium = "0.2" # smith-core, cbor session codectracing-subscriber = { version = "0.3", features = ["env-filter"] } # smith-cli, log outputsimilar = "2" # diffignore = "0.4" # search stackgrep = "0.4" # search stackgrep-regex = "0.1" # search stackgrep-searcher = "0.1" # search stackgix = { version = "0.83", default-features = false, features = [ "blame", "blob-diff", "revision",] } # vcsoauth2 = "4" # smith-ai, oauth flowszstd = "0.13" # compressionzip = { version = "2", default-features = false, features = ["deflate"] } # archivestar = "0.4" # archivesflate2 = "1" # archivesjsonschema = "0.28" # smith-ai, catalog validationsha2 = "0.10" # checksumsratatui = "0.29" # smith-tui, terminal stack (widgets)crossterm = "0.28" # smith-tui, terminal stack (backend)unicode-width = "0.2" # smith-tui, terminal stackunicode-segmentation = "1" # smith-tui, terminal stacksyntastica = { version = "0.6", default-features = false, features = [ "runtime-c2rust",] } # smith-tui, highlightingsyntastica-parsers = "0.6" # smith-tui, highlighting# wasmtime arrives with the wasm plugin law; owner smith-harness.# leaf utilities+10 / −1 text lines
+2 / −2 text lines
+1 / −1 text lines
+2 / −2 text lines
+2 / −3 text lines
uuid = { workspace = true }+3 / −5 text lines
+0 / −3 text lines
+1 / −1 text lines
+62 / −2 text lines
cargo_machete, sequence(&[cargo_deny, cargo_audit]) sequence(&[install_deny, install_audit, cargo_deny, cargo_audit]) let steps: [Step; 3] = [install_binstall, install_nextest, install_pup];fn install_machete() -> ExitCode { tool_present_bin("cargo-machete", "--version", || { cargo(&["install", "--locked", "cargo-machete"]) })}fn install_deny() -> ExitCode { tool_present_bin("cargo-deny", "--version", || { cargo(&[ "binstall", "--no-confirm", &format!("cargo-deny@{DENY_VERSION}"), ]) })}fn install_audit() -> ExitCode { tool_present_bin("cargo-audit", "--version", || { cargo(&[ "binstall", "--no-confirm", &format!("cargo-audit@{AUDIT_VERSION}"), ]) })}/// Probes an external binary directly; cargo subcommand dispatch can mangle/// arguments, so build tools are probed and run as plain binaries.fn tool_present_bin(program: &str, flag: &str, install: impl FnOnce() -> ExitCode) -> ExitCode { match Command::new(program) .arg(flag) .stdout(std::process::Stdio::null()) .stderr(std::process::Stdio::null()) .status() { Ok(status) if status.success() => ExitCode::SUCCESS, _ => install(), }}