pup -> archunit
5c9519c38adfc66144fc95e67bfd33ceaeb0eb94
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 456de5fbcdc2
There are many coding harnesses - but this one is fast
5c9519c38adfc66144fc95e67bfd33ceaeb0eb94
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+1794 / −78 text lines
+1 / −1 text lines
+1368 / −9 text lines
[[package]]name = "allocator-api2"version = "0.2.21"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"[[package]]name = "ambient-authority"version = "0.0.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e9d4ee0d472d1cd2e28c97dfa124b3d8d992e10eb0a035f33f5d12e3a177ba3b"[[package]]name = "anyhow"version = "1.0.104"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"[[package]]name = "arbitrary"version = "1.4.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"[[package]]name = "archunit"version = "0.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5938e45665a7cee4212d0a7043ea68929d13355269d08e36366bcac2a43b6996"dependencies = [ "cargo_metadata", "proc-macro2", "regex", "serde_json", "syn 2.0.119", "thiserror 2.0.21",][[package]]name = "camino"version = "1.2.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591"dependencies = [ "serde_core",][[package]]name = "cap-primitives"version = "4.0.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8b5f74729fd2f44701d1a8eb47e906cdb3ccd9ec0f02baad85a744b791940b18"dependencies = [ "ambient-authority", "fs-set-times", "io-extras", "io-lifetimes 3.0.1", "ipnet", "maybe-owned", "rustix", "rustix-linux-procfs", "windows-sys 0.61.2", "winx",][[package]]name = "cargo-platform"version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "84982c6c0ae343635a3a4ee6dedef965513735c8b183caa7289fa6e27399ebd4"dependencies = [ "serde",][[package]]name = "cargo-util-schemas"version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e63d2780ac94487eb9f1fea7b0d56300abc9eb488800854ca217f102f5caccca"dependencies = [ "semver", "serde", "serde-untagged", "serde-value", "thiserror 1.0.69", "toml", "unicode-xid", "url",][[package]]name = "cargo_metadata"version = "0.20.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4f7835cfc6135093070e95eb2b53e5d9b5c403dc3a6be6040ee026270aa82502"dependencies = [ "camino", "cargo-platform", "cargo-util-schemas", "semver", "serde", "serde_json", "thiserror 2.0.21",][[package]]name = "core_detect"version = "1.0.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"[[package]]name = "cpp_demangle"version = "0.5.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0667304c32ea56cb4cd6d2d7c0cfe9a2f8041229db8c033af7f8d69492429def"dependencies = [ "cfg-if",][[package]]name = "cpufeatures"version = "0.2.17"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"dependencies = [ "libc",][[package]]name = "cranelift-assembler-x64"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c8a495ae3e4d638712a0c0378719e526e448d04d7ebbbe1745712e12c5feb4c3"dependencies = [ "cranelift-assembler-x64-meta",][[package]]name = "cranelift-assembler-x64-meta"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4eb2e299e844a27d799f43988e4415a37696fdb738cb463312ef5d06cae15b2a"dependencies = [ "cranelift-srcgen",][[package]]name = "cranelift-bforest"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f4710c34489bc844e45c1c0005d3e44d3d2b29cee77187507ba8d0bb400c621f"dependencies = [ "cranelift-entity", "wasmtime-internal-core",][[package]]name = "cranelift-bitset"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "76b63a4b0cfea80610150fffda11b1a9c3dc5a835403d9f381bf7d1a2874b4d7"dependencies = [ "serde", "serde_derive", "wasmtime-internal-core",][[package]]name = "cranelift-codegen"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e1af881f3b3392433e6f4f9b172b8d99270c538db4effea62b28bc48f02f0833"dependencies = [ "bumpalo", "cranelift-assembler-x64", "cranelift-bforest", "cranelift-bitset", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-control", "cranelift-entity", "cranelift-isle", "gimli", "hashbrown 0.17.1", "libm", "log", "postcard", "pulley-interpreter", "regalloc2", "rustc-hash", "serde", "serde_derive", "sha2", "smallvec", "target-lexicon", "wasmtime-internal-core",][[package]]name = "cranelift-codegen-meta"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "24ce99c30dc7a692294613241119eea0de3c3cb4cf10ac2570ed72adf9a8c2eb"dependencies = [ "cranelift-assembler-x64-meta", "cranelift-codegen-shared", "cranelift-srcgen", "heck", "pulley-interpreter",][[package]]name = "cranelift-codegen-shared"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "34c2a529b638d95c347c2337403dacec86197ad6503cedc63caf53466ae5c4de"[[package]]name = "cranelift-control"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "570eb4e02cca190896beb3c8a0a67583dca8b6965517a9f3e04cc89e17c9a986"dependencies = [ "arbitrary",][[package]]name = "cranelift-entity"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e73c65538d460b1062cb9a97428ee6bb4b616f5cb17be3b3ac0a3e4f1f789166"dependencies = [ "cranelift-bitset", "serde", "serde_derive", "wasmtime-internal-core",][[package]]name = "cranelift-frontend"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5ed70ab5849184973c42b57366f57611dc81c3e355d5b612c68a2900bea92242"dependencies = [ "cranelift-codegen", "hashbrown 0.17.1", "log", "smallvec", "target-lexicon",][[package]]name = "cranelift-isle"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "379f10a451c9b1bf4f59e4ce38061c53ca2454783041a3c1fafa6deef3c37108"[[package]]name = "cranelift-native"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4f496865b1a14bc85bcc9fb51a9539ca93b1d1f44fb92bd6a091fba02d6ab4a7"dependencies = [ "cranelift-codegen", "libc", "target-lexicon",][[package]]name = "cranelift-srcgen"version = "0.136.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "89643801d9192df80c294f174d5fe0416395e7edb0bb3024784ba10fc933e76f"[[package]]name = "crc32fast"version = "1.5.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"dependencies = [ "cfg-if",][[package]]name = "embedded-io"version = "0.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced"[[package]]name = "embedded-io"version = "0.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d"[[package]]name = "encoding_rs"version = "0.8.42"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8e985e0451871ad22fb8d2b6b076e2028a502a0d3950998c2c5c0a4f9b5d9679"dependencies = [ "cfg-if", "core_detect", "multiversion_no_op", "rustversion", "scopeguard", "simdutf8",][[package]]name = "erased-serde"version = "0.4.10"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"dependencies = [ "serde", "serde_core", "typeid",][[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 = "fnv"version = "1.0.7"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"[[package]]name = "foldhash"version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"[[package]]name = "io-extras"version = "0.19.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "20fd6de4ccfcc187e38bc21cfa543cb5a302cb86a8b114eb7f0bf0dc9f8ac00f"dependencies = [ "io-lifetimes 3.0.1", "windows-sys 0.60.2",][[package]]name = "io-lifetimes"version = "2.0.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "06432fb54d3be7964ecd3649233cddf80db2832f47fec34c01f65b3d9d774983"[[package]]name = "io-lifetimes"version = "3.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2f0fb0570afe1fed943c5c3d4102d5358592d8625fda6a0007fdbe65a92fba96"[[package]]name = "mach2"version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "dae608c151f68243f2b000364e1f7b186d9c29845f7d2d85bd31b9ad77ad552b"[[package]]name = "maybe-owned"version = "0.3.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4facc753ae494aeb6e3c22f839b158aebd4f9270f55cd3c79906c45476c47ab4"[[package]]name = "object"version = "0.40.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "dd229a0361b9d0d4396176e02d65897f487eebeab7caa6d443855ee152ca0b9c"dependencies = [ "crc32fast", "hashbrown 0.17.1", "indexmap", "memchr",][[package]]name = "postcard"version = "1.1.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24"dependencies = [ "cobs", "embedded-io 0.4.0", "embedded-io 0.6.1", "serde",][[package]]name = "pulley-interpreter"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0091857bc410bd7117eb6ac042ced7714c69f994a8b9c2ae30add2f73e3a25ac"dependencies = [ "cranelift-bitset", "log", "pulley-macros", "wasmtime-internal-core",][[package]]name = "pulley-macros"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8798ebc6bf0ef227e204fa3fad05b04970599a85f456fd28365450fd679b2600"dependencies = [ "proc-macro2", "quote", "syn 2.0.119",][[package]]name = "regalloc2"version = "0.15.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "757712e8e61590d6d4f5d563483755538b5aa13467837a3b41cd9832509a7f85"dependencies = [ "allocator-api2", "bumpalo", "hashbrown 0.17.1", "log", "rustc-hash", "serde", "smallvec",][[package]]name = "rustix"version = "1.1.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", "windows-sys 0.61.2",][[package]]name = "rustix-linux-procfs"version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2fc84bf7e9aa16c4f2c758f27412dc9841341e16aa682d9c7ac308fe3ee12056"dependencies = [ "once_cell", "rustix",][[package]]name = "scopeguard"version = "1.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "semver"version = "1.0.28"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"dependencies = [ "serde", "serde_core",][[package]]name = "serde-untagged"version = "0.1.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"dependencies = [ "erased-serde", "serde", "serde_core", "typeid",][[package]]name = "serde-value"version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c"dependencies = [ "ordered-float", "serde",] "archunit",[[package]]name = "target-lexicon"version = "0.13.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"[[package]]name = "termcolor"version = "1.4.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"dependencies = [ "winapi-util",][[package]]name = "toml"version = "0.8.23"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"dependencies = [ "serde", "serde_spanned", "toml_datetime", "toml_edit",][[package]]name = "toml_datetime"version = "0.6.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"dependencies = [ "serde",][[package]]name = "toml_edit"version = "0.22.27"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"dependencies = [ "indexmap", "serde", "serde_spanned", "toml_datetime", "toml_write", "winnow",][[package]]name = "toml_write"version = "0.1.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" "tracing-attributes",[[package]]name = "typeid"version = "1.0.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"[[package]]name = "typenum"version = "1.20.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"[[package]]name = "wasm-encoder"version = "0.258.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e974fe6821a8cf64575d51ea2194e2c8f77e7b66e9afe7419ce8a97f9ee0d251"dependencies = [ "leb128fmt", "wasmparser 0.258.0",][[package]]name = "wasm-encoder"version = "0.259.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b1d0246511d901aacf25d2dc9111f0054947de5e093fe662099e709ff7530dc3"dependencies = [ "leb128fmt", "wasmparser 0.259.0",][[package]]name = "wasm-metadata"version = "0.258.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "18a11585adb92fe9b55ad1d760e8d8fb5d87e0d2e303cb8eed57f078d54293a2"dependencies = [ "anyhow", "indexmap", "wasm-encoder 0.258.0", "wasmparser 0.258.0",][[package]]name = "wasm-metadata"version = "0.259.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4e7bf119eb01f4a246864c10bd87c8f26c566350abb25aa4d5273c415bbab338"dependencies = [ "anyhow", "indexmap", "wasm-encoder 0.259.0", "wasmparser 0.259.0",][[package]]name = "wasmparser"version = "0.258.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d9a61719f93a87b16d325921e251800c4833f8fab50fa21c7de73aed50086313"dependencies = [ "bitflags", "hashbrown 0.17.1", "indexmap", "semver", "serde",][[package]]name = "wasmparser"version = "0.259.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0f7c12eac7bb587801590f6a67ff0bc84d0748513864b71108e4b311cc3df694"dependencies = [ "bitflags", "hashbrown 0.17.1", "indexmap", "semver",][[package]]name = "wasmprinter"version = "0.258.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3a65e30fb2cd3cc5cb7761a6064787b2abf017e6566d8d0dedf2bb7f55ad5383"dependencies = [ "anyhow", "termcolor", "wasmparser 0.258.0",][[package]]name = "wasmtime"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "942ddd2fc5800ec01d4b11c28ad62ab00517dcd416aff728f7d73fddf75872c1"dependencies = [ "addr2line", "async-trait", "bitflags", "bumpalo", "cc", "encoding_rs", "futures", "libc", "log", "mach2", "memfd", "object", "once_cell", "postcard", "pulley-interpreter", "rustix", "semver", "serde", "serde_derive", "smallvec", "target-lexicon", "wasmparser 0.258.0", "wasmtime-environ", "wasmtime-internal-component-macro", "wasmtime-internal-component-util", "wasmtime-internal-core", "wasmtime-internal-cranelift", "wasmtime-internal-fiber", "wasmtime-internal-jit-debug", "wasmtime-internal-jit-icache-coherence", "wasmtime-internal-unwinder", "wasmtime-internal-versioned-export-macros", "windows-sys 0.61.2",][[package]]name = "wasmtime-environ"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "98f2ca21b23a51c1b1944297e9671a628c368e92aa6250e4c38f48e2dc251f0c"dependencies = [ "anyhow", "cpp_demangle", "cranelift-bforest", "cranelift-bitset", "cranelift-entity", "gimli", "hashbrown 0.17.1", "indexmap", "log", "object", "postcard", "rustc-demangle", "semver", "serde", "serde_derive", "sha2", "smallvec", "target-lexicon", "wasm-encoder 0.258.0", "wasmparser 0.258.0", "wasmprinter", "wasmtime-internal-component-util", "wasmtime-internal-core",][[package]]name = "wasmtime-internal-component-macro"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "92c42f95d879875994319bd6689b17570e68aebd1a17e0dc54430928ed0699b5"dependencies = [ "anyhow", "proc-macro2", "quote", "syn 2.0.119", "wasmtime-internal-component-util", "wasmtime-internal-wit-bindgen", "wit-parser 0.258.0",][[package]]name = "wasmtime-internal-component-util"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "294c7f12f062ceb148cd26c77170ff739552db76d1f203f6127f249684988a70"[[package]]name = "wasmtime-internal-core"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "64b67114739063bb72bb8ed2b4994b8b22809d354432db68553ad529850f9536"dependencies = [ "hashbrown 0.17.1", "libm", "serde",][[package]]name = "wasmtime-internal-cranelift"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b7d19868a30cc20df6f6648c9a4b3f700fcd1ddd0a63af9a98cb75f2b58dc874"dependencies = [ "cranelift-codegen", "cranelift-control", "cranelift-entity", "cranelift-frontend", "cranelift-native", "gimli", "itertools 0.14.0", "log", "object", "pulley-interpreter", "smallvec", "target-lexicon", "thiserror 2.0.21", "wasmparser 0.258.0", "wasmtime-environ", "wasmtime-internal-core", "wasmtime-internal-unwinder", "wasmtime-internal-versioned-export-macros",][[package]]name = "wasmtime-internal-fiber"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4f1999aee268c3f625666b12ba0ded55a6ac2c800b60b426af7d164d63411908"dependencies = [ "cc", "libc", "rustix", "wasmtime-environ", "wasmtime-internal-versioned-export-macros", "windows-sys 0.61.2",][[package]]name = "wasmtime-internal-jit-debug"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "33ca2499301c6f11cc9eb42c2beafc8efae396ae4cb91077e3ac080dc5d765e4"dependencies = [ "cc", "wasmtime-internal-versioned-export-macros",][[package]]name = "wasmtime-internal-jit-icache-coherence"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7162d829c56265e183d23b17d67afc5c6876433daaed54c137388a8078a1bb6b"dependencies = [ "libc", "wasmtime-internal-core", "windows-sys 0.61.2",][[package]]name = "wasmtime-internal-unwinder"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4e167cf144f3cee40838f7663e3a589f93bba65151efa084a2d58b2bd47469f1"dependencies = [ "cranelift-codegen", "log", "object", "wasmtime-environ",][[package]]name = "wasmtime-internal-versioned-export-macros"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8d09e038ad69c741dae29da4606ccfc0df66f156e62cb7f0664c8d7d1272a36d"dependencies = [ "proc-macro2", "quote", "syn 2.0.119",][[package]]name = "wasmtime-internal-wit-bindgen"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c63d97a742fc9b415dad7ed2ac33ddb8fe6c5413fcd0c7ee58907f2ab6f9a430"dependencies = [ "anyhow", "bitflags", "heck", "indexmap", "wit-component 0.258.0", "wit-parser 0.258.0",][[package]]name = "wasmtime-wasi"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ce11727cb331abeaace3681a4b072e4fe04818d7b99786d183b318671f9e4e0e"dependencies = [ "async-trait", "bitflags", "bytes", "cap-primitives", "futures", "rand", "rustix", "rustix-linux-procfs", "thiserror 2.0.21", "tokio", "tracing", "url", "wasmtime", "wasmtime-wasi-io", "windows-sys 0.61.2", "winx",][[package]]name = "wasmtime-wasi-io"version = "49.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "35f5ed8d710d8daf71cb4742c6b90c1fd121acb62b6848556eb4e0661cbd28bd"dependencies = [ "async-trait", "bytes", "futures", "tracing", "wasmtime",][[package]]name = "windows-sys"version = "0.59.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"dependencies = [ "windows-targets 0.52.6",][[package]]name = "windows-sys"version = "0.60.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"dependencies = [ "windows-targets 0.53.5",][[package]]name = "windows-targets"version = "0.53.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"dependencies = [ "windows-link", "windows_aarch64_gnullvm 0.53.1", "windows_aarch64_msvc 0.53.1", "windows_i686_gnu 0.53.1", "windows_i686_gnullvm 0.53.1", "windows_i686_msvc 0.53.1", "windows_x86_64_gnu 0.53.1", "windows_x86_64_gnullvm 0.53.1", "windows_x86_64_msvc 0.53.1",][[package]]name = "windows_x86_64_msvc"version = "0.53.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"[[package]]name = "winnow"version = "0.7.15"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"dependencies = [ "memchr",][[package]]name = "winx"version = "0.36.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3f3fd376f71958b862e7afb20cfe5a22830e1963462f3a17f49d82a6c1d1f42d"dependencies = [ "bitflags", "windows-sys 0.59.0",][[package]]name = "wit-bindgen"version = "0.62.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "53cb4b5556c3a791e86838ea287782bdafa704d55b0e68b5b81a3a16b9ea5f4b"dependencies = [ "wit-bindgen-rust-macro",][[package]]name = "wit-bindgen-core"version = "0.62.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "72ad22a37ecbc0e1fdca34d2b670ba41368cb0920735643e00fdf39a16ee5431"dependencies = [ "anyhow", "heck", "wit-parser 0.259.0",][[package]]name = "wit-bindgen-rust"version = "0.62.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "84ba5213d4332c260a0d4e69e34b0f7e4b85ddae10b6ebfbac00d9c185ba628a"dependencies = [ "anyhow", "heck", "indexmap", "prettyplease", "syn 3.0.6", "wasm-metadata 0.259.0", "wit-bindgen-core", "wit-component 0.259.0",][[package]]name = "wit-bindgen-rust-macro"version = "0.62.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8f19d63da8e478a370ef8192d90ccb517965b7747d6b46cd2d831dd0ef4d2541"dependencies = [ "anyhow", "prettyplease", "proc-macro2", "quote", "syn 3.0.6", "wit-bindgen-core", "wit-bindgen-rust",][[package]]name = "wit-component"version = "0.258.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "481b5c47b2ecce0389b5e08a05557d6a190c9cd761773b8880a8017ee04dc7ef"dependencies = [ "anyhow", "bitflags", "indexmap", "log", "serde", "serde_derive", "serde_json", "wasm-encoder 0.258.0", "wasm-metadata 0.258.0", "wasmparser 0.258.0", "wit-parser 0.258.0",][[package]]name = "wit-component"version = "0.259.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "092f783dee3253265fcde131475055f8c275ac0176a9c0396db1dc7b5544bfb4"dependencies = [ "anyhow", "bitflags", "indexmap", "log", "serde", "serde_derive", "serde_json", "wasm-encoder 0.259.0", "wasm-metadata 0.259.0", "wasmparser 0.259.0", "wit-parser 0.259.0",][[package]]name = "wit-parser"version = "0.258.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ff4daaa3cd97ae49ecd0a99dc009d453f93e0f083dd3be38c0f24a83a93e37ac"dependencies = [ "anyhow", "hashbrown 0.17.1", "id-arena", "indexmap", "log", "semver", "serde", "serde_derive", "serde_json", "unicode-ident", "wasmparser 0.258.0",][[package]]name = "wit-parser"version = "0.259.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6390f4f02493ce678d509c859cf1698e38929fb75c8012a6ee2f7d6b6cb66cd7"dependencies = [ "anyhow", "hashbrown 0.17.1", "id-arena", "indexmap", "log", "semver", "serde", "serde_derive", "serde_json", "unicode-ident", "wasmparser 0.259.0",]checksum = "c17e8fafad82b542ff3717217ecdc736231b59e387768c9630123b4ce4d2db44"checksum = "6df92bf3d9227be3d53173901ddbffac2babc27ae50f397776ffd6dc33f800cb"+11 / −0 text lines
"plugins/echo",wasmtime = { version = "49", default-features = false, features = [ "runtime", "component-model", "cranelift", "demangle",] } # smith-harness, wasm plugin enginewasmtime-wasi = { version = "49", default-features = false, features = [ "p2",] } # smith-harness, scoped wasi:io/poll linkingarchunit = "0.0.1"new file mode 100644+12 / −0 text lines
new file mode 100644+31 / −0 text lines
//! Reference system plugin: one echo tool over the smith:plugin world.#![expect(missing_docs, reason = "wit-bindgen generates the world surface")]#![expect(clippy::pedantic, reason = "wit-bindgen generates the world surface")]wit_bindgen::generate!({ path: "../../wit/smith-plugin.wit", world: "plugin-world",});use exports::smith::plugin::plugin::{Guest, ToolDeclaration};struct EchoPlugin;impl Guest for EchoPlugin { fn declare_tools() -> Vec<ToolDeclaration> { vec![ToolDeclaration { name: "echo".to_string(), description: "Echoes the input string back verbatim.".to_string(), }] } fn invoke(name: String, input_json: String) -> Result<String, String> { if name == "echo" { Ok(input_json) } else { Err(format!("unknown tool: {name}")) } }}export!(EchoPlugin);+1 / −0 text lines
new file mode 100644+72 / −0 text lines
//! Workspace architecture law, expressed as source-level tests.//!//! Mirrors the manifest gate in xtask and adds what manifests cannot see://! source dependency graphs and engine-ownership boundaries.use archunit::{assert_passes, project_files};macro_rules! boundary { ($name:ident, $from:expr, $to:expr) => { #[test] fn $name() { let rule = project_files() .in_path(concat!($from, "/src/**")) .should_not() .depend_on_files() .in_path(concat!($to, "/src/**")); assert_passes!(rule); } };}boundary!(smith_is_foundational, "smith", "smith-core");boundary!(smith_never_ai, "smith", "smith-ai");boundary!(smith_never_ui, "smith", "smith-ui");boundary!(smith_never_tui, "smith", "smith-tui");boundary!(smith_never_rpc, "smith", "smith-rpc");boundary!(smith_never_harness, "smith", "smith-harness");boundary!(smith_never_cli, "smith", "smith-cli");boundary!(core_never_ai, "smith-core", "smith-ai");boundary!(core_never_ui, "smith-core", "smith-ui");boundary!(core_never_tui, "smith-core", "smith-tui");boundary!(core_never_rpc, "smith-core", "smith-rpc");boundary!(core_never_harness, "smith-core", "smith-harness");boundary!(core_never_cli, "smith-core", "smith-cli");boundary!(ai_never_core, "smith-ai", "smith-core");boundary!(ai_never_ui, "smith-ai", "smith-ui");boundary!(ai_never_tui, "smith-ai", "smith-tui");boundary!(ai_never_rpc, "smith-ai", "smith-rpc");boundary!(ai_never_harness, "smith-ai", "smith-harness");boundary!(ai_never_cli, "smith-ai", "smith-cli");boundary!(ui_never_core, "smith-ui", "smith-core");boundary!(ui_never_ai, "smith-ui", "smith-ai");boundary!(ui_never_tui, "smith-ui", "smith-tui");boundary!(ui_never_rpc, "smith-ui", "smith-rpc");boundary!(ui_never_harness, "smith-ui", "smith-harness");boundary!(ui_never_cli, "smith-ui", "smith-cli");boundary!(tui_never_core, "smith-tui", "smith-core");boundary!(tui_never_ai, "smith-tui", "smith-ai");boundary!(tui_never_rpc, "smith-tui", "smith-rpc");boundary!(tui_never_harness, "smith-tui", "smith-harness");boundary!(tui_never_cli, "smith-tui", "smith-cli");boundary!(rpc_never_ai, "smith-rpc", "smith-ai");boundary!(rpc_never_ui, "smith-rpc", "smith-ui");boundary!(rpc_never_tui, "smith-rpc", "smith-tui");boundary!(rpc_never_harness, "smith-rpc", "smith-harness");boundary!(rpc_never_cli, "smith-rpc", "smith-cli");#[test]fn wasmtime_lives_only_in_harness() { let rule = project_files() .in_path("smith-core/src/**") .should_not() .depend_on_external_modules() .matching("wasmtime") .matching("wasmtime-wasi"); assert_passes!(rule);}+2 / −0 text lines
+1 / −0 text lines
new file mode 100644+205 / −0 text lines
//! Wasm plugin host: deterministic engine, artifact validation,//! transactional load, and fuel with memory ceilings.//!//! The engine serves every plugin identically; embedded and user plugins//! load through this one path with no privilege difference.use ::smith::error::{ProviderFault, Result, SmithError};use std::path::Path;use wasmtime::component::{Component, Linker};use wasmtime::{Config, Engine, Store, component::ResourceTable};#[allow(missing_docs, reason = "generated bindings carry no doc comments")]pub mod bindings { wasmtime::component::bindgen!({ path: "../wit/smith-plugin.wit", world: "plugin-world", });}use self::bindings::PluginWorld;use self::bindings::exports::smith::plugin::plugin::ToolDeclaration;use self::bindings::smith::plugin::tooling::Host as ToolingHost;/// Deterministic engine configuration per `SMH-SPEC-WASM0001`.pub struct PluginEngine { engine: Engine,}impl PluginEngine { /// Build the deterministic engine: NaN canonicalization on, fuel on, /// backtraces off. /// /// # Errors /// /// Returns a plugin fault when the engine cannot be configured. pub fn new() -> Result<Self> { let mut config = Config::new(); config.cranelift_nan_canonicalization(true); config.consume_fuel(true); config.wasm_backtrace_max_frames(std::num::NonZeroUsize::new(1)); let engine = Engine::new(&config).map_err(|e| plugin_fault(format!("engine config failed: {e}")))?; Ok(Self { engine }) } /// Validate one artifact against the world; a rejected artifact never /// instantiates. /// /// # Errors /// /// Returns a plugin fault naming the validation stage and cause. pub fn validate(&self, artifact: &Path) -> Result<Component> { Component::from_file(&self.engine, artifact) .map_err(|e| plugin_fault(format!("validation failed: {e}"))) } /// The shared engine behind every plugin. #[must_use] pub const fn engine(&self) -> &Engine { &self.engine }}/// One instantiated plugin: pinned store, fuel budget, and bindings.pub struct PluginInstance { store: Store<PluginHostState>, bindings: PluginWorld,}/// Per-plugin runtime ceilings.#[derive(Clone, Copy, Debug)]pub struct PluginCeilings { /// Memory ceiling in bytes. pub memory_bytes: usize, /// Fuel budget per call. pub fuel: u64,}impl Default for PluginCeilings { fn default() -> Self { Self { memory_bytes: 64 * 1024 * 1024, fuel: 10_000_000_000, } }}struct PluginHostState { table: ResourceTable, wasi: wasmtime_wasi::WasiCtx, ceilings: PluginCeilings,}impl PluginHostState { fn limits(&mut self) -> &mut dyn wasmtime::ResourceLimiter { &mut self.ceilings }}impl wasmtime::ResourceLimiter for PluginCeilings { fn memory_growing( &mut self, _current: usize, desired: usize, _maximum: Option<usize>, ) -> wasmtime::Result<bool> { Ok(desired <= self.memory_bytes) } fn table_growing( &mut self, _current: usize, desired: usize, _maximum: Option<usize>, ) -> wasmtime::Result<bool> { Ok(desired <= 10_000) }}impl PluginInstance { /// Validate, instantiate, and pin one plugin atomically. /// /// # Errors /// /// Returns a plugin fault naming the failed lifecycle stage. pub fn load(engine: &PluginEngine, artifact: &Path) -> Result<Self> { let component = engine.validate(artifact)?; let mut store = Store::new( engine.engine(), PluginHostState { table: ResourceTable::new(), wasi: wasmtime_wasi::WasiCtxBuilder::new().build(), ceilings: PluginCeilings::default(), }, ); store.limiter(PluginHostState::limits); store .set_fuel(PluginCeilings::default().fuel) .map_err(|e| plugin_fault(format!("fuel setup failed: {e}")))?; let mut linker: Linker<PluginHostState> = Linker::new(engine.engine()); wasmtime_wasi::p2::add_to_linker_sync::<PluginHostState>(&mut linker) .map_err(|e| plugin_fault(format!("wasi linking failed: {e}")))?; PluginWorld::add_to_linker::<PluginHostState, PluginHasSelf>(&mut linker, |state| state) .map_err(|e| plugin_fault(format!("linker setup failed: {e}")))?; let bindings = PluginWorld::instantiate(&mut store, &component, &linker) .map_err(|e| plugin_fault(format!("instantiation failed: {e}")))?; Ok(Self { store, bindings }) } /// The declared tool set; runs the declaration pass. /// /// # Errors /// /// Returns a plugin fault on trap, fuel exhaustion, or conversion /// failure. pub fn declare_tools(&mut self) -> Result<Vec<ToolDeclaration>> { let interface = self .bindings .smith_plugin_plugin() .call_declare_tools(&mut self.store) .map_err(|e| plugin_fault(format!("declaration failed: {e}")))?; Ok(interface) } /// Invoke one declared tool by name. /// /// # Errors /// /// Returns a plugin fault on trap, fuel exhaustion, or a guest error; /// guest errors carry the plugin's own message. pub fn invoke(&mut self, name: &str, input_json: &str) -> Result<String> { let outcome = self .bindings .smith_plugin_plugin() .call_invoke(&mut self.store, name, input_json) .map_err(|e| plugin_fault(format!("invoke failed: {e}")))?; outcome.map_err(|message| plugin_fault(format!("plugin error: {message}"))) }}fn plugin_fault(message: impl Into<String>) -> SmithError { SmithError::Provider { fault: ProviderFault::Plugin { message: message.into(), }, }}/// Self-referential data marker for linker setup.struct PluginHasSelf;impl wasmtime::component::HasData for PluginHasSelf { type Data<'a> = &'a mut PluginHostState;}impl ToolingHost for PluginHostState {}impl wasmtime_wasi::WasiView for PluginHostState { fn ctx(&mut self) -> wasmtime_wasi::WasiCtxView<'_> { wasmtime_wasi::WasiCtxView { ctx: &mut self.wasi, table: &mut self.table, } }}new file mode 100644+55 / −0 text lines
//! Wasm host lifecycle: validate, instantiate, declare, invoke, fuel.#![expect(clippy::unwrap_used, reason = "integration tests assert on outcomes")]#![expect(clippy::panic, reason = "integration tests assert on outcomes")]use smith_harness::wasm::{PluginEngine, PluginInstance};/// Build the echo artifact, returning its path.fn echo_artifact() -> std::path::PathBuf { let status = std::process::Command::new("cargo") .args([ "build", "-p", "smith-plugin-echo", "--target", "wasm32-wasip2", ]) .status() .unwrap(); assert!(status.success(), "echo plugin build failed"); let manifest = std::env::var("CARGO_MANIFEST_DIR").unwrap(); std::path::Path::new(&manifest).join("../target/wasm32-wasip2/debug/smith_plugin_echo.wasm")}#[test]fn echo_plugin_loads_declares_and_invokes() { let artifact = echo_artifact(); let engine = PluginEngine::new().unwrap(); let mut instance = PluginInstance::load(&engine, &artifact).unwrap(); let tools = instance.declare_tools().unwrap(); assert_eq!(tools.len(), 1); assert_eq!(tools[0].name, "echo"); let echoed = instance.invoke("echo", "{\"text\":\"hi\"}").unwrap(); assert_eq!(echoed, "{\"text\":\"hi\"}"); let rejected = match instance.invoke("nope", "{}") { Err(error) => error, Ok(value) => panic!("expected plugin error, got {value}"), }; assert!(rejected.to_string().contains("unknown tool: nope"));}#[test]fn invalid_artifact_fails_validation() { let junk = std::env::temp_dir().join(format!("smith_junk_{}.wasm", std::process::id())); std::fs::write(&junk, b"not a component").unwrap(); let engine = PluginEngine::new().unwrap(); let Err(error) = PluginInstance::load(&engine, &junk) else { panic!("expected validation failure") }; assert!(error.to_string().contains("validation failed")); let _ = std::fs::remove_file(&junk);}+7 / −0 text lines
new file mode 100644+23 / −0 text lines
package smith:plugin@0.1.0;interface tooling { record tool-declaration { name: string, description: string, }}interface plugin { use tooling.{tool-declaration}; /// Static declaration pass: runs at instantiation, before publication, /// and may not perform host effects. declare-tools: func() -> list<tool-declaration>; /// Invoke one declared tool by name; input and output are canonical JSON. invoke: func(name: string, input-json: string) -> result<string, string>;}world plugin-world { export plugin;}+5 / −68 text lines
"usage: cargo x <check|lint|fmt|test|doc|arch|pup|audit|bootstrap>\n", "usage: cargo x <check|lint|fmt|test|doc|arch|audit|bootstrap>\n", Some("pup") => cargo_pup(), cargo_pup, install_pup, // as cargo_pup: crates.io drift cannot break the gate. // crates.io drift cannot break the gate.fn add_pup_components() -> ExitCode { run( "rustup", &[ "component", "add", "--toolchain", PINNED_NIGHTLY.trim_start_matches('+'), "rust-src", "rustc-dev", "llvm-tools", ], )}fn install_pup() -> ExitCode { let components = sequence(&[add_pup_components]); if components != ExitCode::SUCCESS { return components; } tool_present(&[PINNED_NIGHTLY, "pup", "--help"], || { cargo(&[ PINNED_NIGHTLY, "install", "cargo_pup", "--version", PUP_VERSION, // Freeze pup's dependency graph: a semver-compatible but // broken dep release on crates.io cannot break the gate. "--locked", ]) })}fn tool_present(probe: &[&str], install: impl FnOnce() -> ExitCode) -> ExitCode { let mut arguments = vec!["cargo"]; arguments.extend_from_slice(probe); match Command::new(arguments[0]) .args(&arguments[1..]) .stdout(std::process::Stdio::null()) .stderr(std::process::Stdio::null()) .status() { Ok(status) if status.success() => ExitCode::SUCCESS, _ => install(), }}