repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

deps: tier law, rustls-only, machete and audit gates, dep cleanup

c49430de73d9b3b6da611397c391bf3ecdc00b36

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (12)

+327 / −422 text lines

Diff layout

.system/RULES.md

Modified

+19 / −0 text lines

6868- `smith-cli`: `smith`, `smith-harness`.
6969- `xtask`: none.
71## Dependencies
73- The sanctioned set lives in `[workspace.dependencies]`, grouped by tier; member crates reference entries, never pin versions locally.
74- Tiers:
75 - vocabulary: ecosystem trait and IR crates; sanctioned once; facade-exempt.
76 - engines: large-surface crates; each owned by exactly one workspace crate; app vocabulary at boundaries; one stack per concern.
77 - leaf utilities: small crates used directly.
78 - build tools: external binaries installed by xtask with `--locked`; never crate dependencies.
79- External types never appear in public workspace-crate APIs; vocabulary derives on own types are the exemption.
80- Prefer std and first-party code; engines only for hard-to-get-right domains.
81- Pure Rust over system dependencies.
82- `default-features = false` unless the feature is the point; enabled features are named.
83- No git dependencies; released versions only.
84- Determinism boundary: nothing on session, replay, or provider paths adds ambient time, randomness, or iteration-order dependence.
85- Network and filesystem I/O never run on the render thread.
86- Unused dependencies are flagged by `cargo x check` and removed.
87- Upgrades are deliberate: `cargo update` in its own commit; lockfile committed.
88- Enforcement is mechanical; humans judge principles, never gatekeep entries.
7190## Research
7392- Research is evidence, not authority.

Cargo.lock

Modified

+167 / −372 text lines

141141source = "registry+https://github.com/rust-lang/crates.io-index"
142142checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
144[[package]]
145name = "chacha20"
146version = "0.10.2"
147source = "registry+https://github.com/rust-lang/crates.io-index"
148checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
149dependencies = [
150 "cfg-if",
151 "cpufeatures",
152 "rand_core",
153]
144155[[package]]
145156name = "ciborium"
146157version = "0.2.2"
215226checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
217228[[package]]
218name = "core-foundation"
219version = "0.9.4"
229name = "cpufeatures"
230version = "0.3.1"
220231source = "registry+https://github.com/rust-lang/crates.io-index"
221checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
232checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
222233dependencies = [
223 "core-foundation-sys",
224234 "libc",
227[[package]]
228name = "core-foundation"
229version = "0.10.1"
230source = "registry+https://github.com/rust-lang/crates.io-index"
231checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
232dependencies = [
233 "core-foundation-sys",
234 "libc",
235]
237[[package]]
238name = "core-foundation-sys"
239version = "0.8.7"
240source = "registry+https://github.com/rust-lang/crates.io-index"
241checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
243[[package]]
244name = "core_detect"
245version = "1.0.0"
246source = "registry+https://github.com/rust-lang/crates.io-index"
247checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
249237[[package]]
250238name = "criterion"
251239version = "0.5.1"
353341source = "registry+https://github.com/rust-lang/crates.io-index"
354342checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
356[[package]]
357name = "encoding_rs"
358version = "0.8.41"
359source = "registry+https://github.com/rust-lang/crates.io-index"
360checksum = "7b5ef0006ac9ab233c38522f5ae99cae3625151de8f706cacee1cba4b8e2832a"
361dependencies = [
362 "cfg-if",
363 "core_detect",
364 "multiversion",
365 "multiversion_no_op",
366 "rustversion",
367 "scopeguard",
368 "simdutf8",
369]
371344[[package]]
372345name = "equivalent"
373346version = "1.0.2"
374347source = "registry+https://github.com/rust-lang/crates.io-index"
375348checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
377[[package]]
378name = "errno"
379version = "0.3.14"
380source = "registry+https://github.com/rust-lang/crates.io-index"
381checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
382dependencies = [
383 "libc",
384 "windows-sys 0.61.2",
385]
387[[package]]
388name = "fastrand"
389version = "2.5.0"
390source = "registry+https://github.com/rust-lang/crates.io-index"
391checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
393350[[package]]
394351name = "find-msvc-tools"
395352version = "0.1.12"
396353source = "registry+https://github.com/rust-lang/crates.io-index"
397354checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
399[[package]]
400name = "fnv"
401version = "1.0.7"
402source = "registry+https://github.com/rust-lang/crates.io-index"
403checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
405[[package]]
406name = "foreign-types"
407version = "0.3.2"
408source = "registry+https://github.com/rust-lang/crates.io-index"
409checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
410dependencies = [
411 "foreign-types-shared",
412]
414[[package]]
415name = "foreign-types-shared"
416version = "0.1.1"
417source = "registry+https://github.com/rust-lang/crates.io-index"
418checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
420356[[package]]
421357name = "form_urlencoded"
422358version = "1.2.2"
531467checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
532468dependencies = [
533469 "cfg-if",
470 "js-sys",
534471 "libc",
535472 "wasi",
473 "wasm-bindgen",
538476[[package]]
542480checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
543481dependencies = [
544482 "cfg-if",
483 "js-sys",
545484 "libc",
546485 "r-efi",
486 "rand_core",
487 "wasm-bindgen",
549490[[package]]
559500 "regex-syntax",
562[[package]]
563name = "h2"
564version = "0.4.19"
565source = "registry+https://github.com/rust-lang/crates.io-index"
566checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16"
567dependencies = [
568 "atomic-waker",
569 "bytes",
570 "fnv",
571 "futures-core",
572 "futures-sink",
573 "http",
574 "indexmap",
575 "slab",
576 "tokio",
577 "tokio-util",
578 "tracing",
579]
581503[[package]]
582504name = "half"
583505version = "2.7.1"
656578 "bytes",
657579 "futures-channel",
658580 "futures-core",
659 "h2",
660581 "http",
661582 "http-body",
662583 "httparse",
680601 "tokio",
681602 "tokio-rustls",
682603 "tower-service",
683]
685[[package]]
686name = "hyper-tls"
687version = "0.6.0"
688source = "registry+https://github.com/rust-lang/crates.io-index"
689checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
690dependencies = [
691 "bytes",
692 "http-body-util",
693 "hyper",
694 "hyper-util",
695 "native-tls",
696 "tokio",
697 "tokio-native-tls",
698 "tower-service",
604 "webpki-roots",
701607[[package]]
716622 "percent-encoding",
717623 "pin-project-lite",
718624 "socket2",
719 "system-configuration",
720625 "tokio",
721626 "tower-service",
722627 "tracing",
723 "windows-registry",
726630[[package]]
917821 "libc",
920[[package]]
921name = "linux-raw-sys"
922version = "0.12.1"
923source = "registry+https://github.com/rust-lang/crates.io-index"
924checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
926824[[package]]
927825name = "litemap"
928826version = "0.8.3"
935833source = "registry+https://github.com/rust-lang/crates.io-index"
936834checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
836[[package]]
837name = "lru-slab"
838version = "0.1.3"
839source = "registry+https://github.com/rust-lang/crates.io-index"
840checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f"
938842[[package]]
939843name = "memchr"
940844version = "2.8.3"
941845source = "registry+https://github.com/rust-lang/crates.io-index"
942846checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
944[[package]]
945name = "mime"
946version = "0.3.17"
947source = "registry+https://github.com/rust-lang/crates.io-index"
948checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
950848[[package]]
951849name = "mio"
952850version = "1.2.3"
958856 "windows-sys 0.61.2",
961[[package]]
962name = "multiversion"
963version = "0.9.0"
964source = "registry+https://github.com/rust-lang/crates.io-index"
965checksum = "b4ca4bea16ffc3f443cf7d866912118196bfef4c6a1556ca00f9f9b00bb43f7c"
966dependencies = [
967 "multiversion-macros",
968]
970[[package]]
971name = "multiversion-macros"
972version = "0.9.0"
973source = "registry+https://github.com/rust-lang/crates.io-index"
974checksum = "0d416831a7317ef4b08bee00b69cbbb9c8763da7959a7026244d6266869f9c83"
975dependencies = [
976 "proc-macro2",
977 "quote",
978 "rustversion",
979 "syn 3.0.5",
980]
982[[package]]
983name = "multiversion_no_op"
984version = "1.0.0"
985source = "registry+https://github.com/rust-lang/crates.io-index"
986checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"
988[[package]]
989name = "native-tls"
990version = "0.2.18"
991source = "registry+https://github.com/rust-lang/crates.io-index"
992checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"
993dependencies = [
994 "libc",
995 "log",
996 "openssl",
997 "openssl-probe",
998 "openssl-sys",
999 "schannel",
1000 "security-framework",
1001 "security-framework-sys",
1002 "tempfile",
1005859[[package]]
1006860name = "nix"
1007861version = "0.29.0"
1041895source = "registry+https://github.com/rust-lang/crates.io-index"
1042896checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
1044[[package]]
1045name = "openssl"
1046version = "0.10.81"
1047source = "registry+https://github.com/rust-lang/crates.io-index"
1048checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
1049dependencies = [
1050 "bitflags",
1051 "cfg-if",
1052 "foreign-types",
1053 "libc",
1054 "openssl-macros",
1055 "openssl-sys",
1058[[package]]
1059name = "openssl-macros"
1060version = "0.1.1"
1061source = "registry+https://github.com/rust-lang/crates.io-index"
1062checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1063dependencies = [
1064 "proc-macro2",
1065 "quote",
1066 "syn 2.0.119",
1069[[package]]
1070name = "openssl-probe"
1071version = "0.2.1"
1072source = "registry+https://github.com/rust-lang/crates.io-index"
1073checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
1075[[package]]
1076name = "openssl-sys"
1077version = "0.9.117"
1078source = "registry+https://github.com/rust-lang/crates.io-index"
1079checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
1080dependencies = [
1081 "cc",
1082 "libc",
1083 "pkg-config",
1084 "vcpkg",
1087898[[package]]
1088899name = "option-ext"
1089900version = "0.2.0"
1102913source = "registry+https://github.com/rust-lang/crates.io-index"
1103914checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
1105[[package]]
1106name = "pkg-config"
1107version = "0.3.34"
1108source = "registry+https://github.com/rust-lang/crates.io-index"
1109checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
1111916[[package]]
1112917name = "plotters"
1113918version = "0.3.7"
1154959 "unicode-ident",
962[[package]]
963name = "quinn"
964version = "0.11.12"
965source = "registry+https://github.com/rust-lang/crates.io-index"
966checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11"
967dependencies = [
968 "bytes",
969 "cfg_aliases",
970 "pin-project-lite",
971 "quinn-proto",
972 "quinn-udp",
973 "rustc-hash",
974 "rustls",
975 "socket2",
976 "thiserror 2.0.21",
977 "tokio",
978 "tracing",
979 "web-time",
980]
982[[package]]
983name = "quinn-proto"
984version = "0.11.18"
985source = "registry+https://github.com/rust-lang/crates.io-index"
986checksum = "a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc"
987dependencies = [
988 "bytes",
989 "getrandom 0.4.3",
990 "lru-slab",
991 "rand",
992 "rand_pcg",
993 "ring",
994 "rustc-hash",
995 "rustls",
996 "rustls-pki-types",
997 "slab",
998 "thiserror 2.0.21",
999 "tinyvec",
1000 "tracing",
1001 "web-time",
1004[[package]]
1005name = "quinn-udp"
1006version = "0.5.15"
1007source = "registry+https://github.com/rust-lang/crates.io-index"
1008checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"
1009dependencies = [
1010 "cfg_aliases",
1011 "libc",
1012 "once_cell",
1013 "socket2",
1014 "tracing",
1015 "windows-sys 0.61.2",
11571018[[package]]
11581019name = "quote"
11591020version = "1.0.47"
11691030source = "registry+https://github.com/rust-lang/crates.io-index"
11701031checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
1033[[package]]
1034name = "rand"
1035version = "0.10.3"
1036source = "registry+https://github.com/rust-lang/crates.io-index"
1037checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
1038dependencies = [
1039 "chacha20",
1040 "getrandom 0.4.3",
1041 "rand_core",
1044[[package]]
1045name = "rand_core"
1046version = "0.10.1"
1047source = "registry+https://github.com/rust-lang/crates.io-index"
1048checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
1050[[package]]
1051name = "rand_pcg"
1052version = "0.10.2"
1053source = "registry+https://github.com/rust-lang/crates.io-index"
1054checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
1055dependencies = [
1056 "rand_core",
11721059[[package]]
11731060name = "rayon"
11741061version = "1.12.0"
11971084dependencies = [
11981085 "getrandom 0.2.17",
11991086 "libredox",
1200 "thiserror",
1087 "thiserror 1.0.69",
12031090[[package]]
12371124dependencies = [
12381125 "base64",
12391126 "bytes",
1240 "encoding_rs",
12411127 "futures-channel",
12421128 "futures-core",
12431129 "futures-util",
1244 "h2",
12451130 "http",
12461131 "http-body",
12471132 "http-body-util",
12481133 "hyper",
12491134 "hyper-rustls",
1250 "hyper-tls",
12511135 "hyper-util",
12521136 "js-sys",
12531137 "log",
1254 "mime",
1255 "native-tls",
12561138 "percent-encoding",
12571139 "pin-project-lite",
1140 "quinn",
1141 "rustls",
12581142 "rustls-pki-types",
12591143 "serde",
12601144 "serde_json",
12611145 "serde_urlencoded",
12621146 "sync_wrapper",
12631147 "tokio",
1264 "tokio-native-tls",
1148 "tokio-rustls",
12651149 "tokio-util",
12661150 "tower",
12671151 "tower-http",
12711155 "wasm-bindgen-futures",
12721156 "wasm-streams",
12731157 "web-sys",
1158 "webpki-roots",
12761161[[package]]
12901175[[package]]
1291name = "rustix"
1292version = "1.1.4"
1176name = "rustc-hash"
1177version = "2.1.3"
12931178source = "registry+https://github.com/rust-lang/crates.io-index"
1294checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
1295dependencies = [
1296 "bitflags",
1297 "errno",
1298 "libc",
1299 "linux-raw-sys",
1300 "windows-sys 0.61.2",
1179checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
13031181[[package]]
13041182name = "rustls"
1305version = "0.23.44"
1183version = "0.23.45"
13061184source = "registry+https://github.com/rust-lang/crates.io-index"
1307checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba"
1185checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"
13081186dependencies = [
13091187 "once_cell",
1188 "ring",
13101189 "rustls-pki-types",
13111190 "rustls-webpki",
13121191 "subtle",
13191198source = "registry+https://github.com/rust-lang/crates.io-index"
13201199checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
13211200dependencies = [
1201 "web-time",
13221202 "zeroize",
13541234 "winapi-util",
1357[[package]]
1358name = "schannel"
1359version = "0.1.29"
1360source = "registry+https://github.com/rust-lang/crates.io-index"
1361checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
1362dependencies = [
1363 "windows-sys 0.61.2",
1366[[package]]
1367name = "scopeguard"
1368version = "1.2.0"
1369source = "registry+https://github.com/rust-lang/crates.io-index"
1370checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
1372[[package]]
1373name = "security-framework"
1374version = "3.7.0"
1375source = "registry+https://github.com/rust-lang/crates.io-index"
1376checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
1377dependencies = [
1378 "bitflags",
1379 "core-foundation 0.10.1",
1380 "core-foundation-sys",
1381 "libc",
1382 "security-framework-sys",
1385[[package]]
1386name = "security-framework-sys"
1387version = "2.17.0"
1388source = "registry+https://github.com/rust-lang/crates.io-index"
1389checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
1390dependencies = [
1391 "core-foundation-sys",
1392 "libc",
13951237[[package]]
13961238name = "serde"
13971239version = "1.0.229"
14541296source = "registry+https://github.com/rust-lang/crates.io-index"
14551297checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
1457[[package]]
1458name = "simdutf8"
1459version = "0.1.5"
1460source = "registry+https://github.com/rust-lang/crates.io-index"
1461checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
14631299[[package]]
14641300name = "slab"
14651301version = "0.4.12"
15181354 "serde",
15191355 "serde_json",
15201356 "smith",
1521 "uuid",
15241359[[package]]
15261361version = "0.1.0"
15271362dependencies = [
15281363 "futures",
1529 "serde",
15301364 "serde_json",
15311365 "smith",
15321366 "smith-ai",
15331367 "smith-core",
1534 "smith-tui",
15371370[[package]]
15381371name = "smith-tui"
15391372version = "0.1.0"
1540dependencies = [
1541 "smith",
15441374[[package]]
15451375name = "socket2"
16111441 "syn 2.0.119",
1614[[package]]
1615name = "system-configuration"
1616version = "0.7.0"
1617source = "registry+https://github.com/rust-lang/crates.io-index"
1618checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
1619dependencies = [
1620 "bitflags",
1621 "core-foundation 0.9.4",
1622 "system-configuration-sys",
1625[[package]]
1626name = "system-configuration-sys"
1627version = "0.6.0"
1628source = "registry+https://github.com/rust-lang/crates.io-index"
1629checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
1630dependencies = [
1631 "core-foundation-sys",
1632 "libc",
1635[[package]]
1636name = "tempfile"
1637version = "3.27.0"
1638source = "registry+https://github.com/rust-lang/crates.io-index"
1639checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
1640dependencies = [
1641 "fastrand",
1642 "getrandom 0.4.3",
1643 "once_cell",
1644 "rustix",
1645 "windows-sys 0.61.2",
16481444[[package]]
16491445name = "thiserror"
16501446version = "1.0.69"
16511447source = "registry+https://github.com/rust-lang/crates.io-index"
16521448checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
16531449dependencies = [
1654 "thiserror-impl",
1450 "thiserror-impl 1.0.69",
1453[[package]]
1454name = "thiserror"
1455version = "2.0.21"
1456source = "registry+https://github.com/rust-lang/crates.io-index"
1457checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
1458dependencies = [
1459 "thiserror-impl 2.0.21",
16571462[[package]]
16651470 "syn 2.0.119",
1473[[package]]
1474name = "thiserror-impl"
1475version = "2.0.21"
1476source = "registry+https://github.com/rust-lang/crates.io-index"
1477checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
1478dependencies = [
1479 "proc-macro2",
1480 "quote",
1481 "syn 3.0.5",
16681484[[package]]
16691485name = "tinystr"
16701486version = "0.8.4"
16851501 "serde_json",
1504[[package]]
1505name = "tinyvec"
1506version = "1.13.3"
1507source = "registry+https://github.com/rust-lang/crates.io-index"
1508checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
16881510[[package]]
16891511name = "tokio"
16901512version = "1.53.1"
16991521 "windows-sys 0.61.2",
1702[[package]]
1703name = "tokio-native-tls"
1704version = "0.3.1"
1705source = "registry+https://github.com/rust-lang/crates.io-index"
1706checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
1707dependencies = [
1708 "native-tls",
1709 "tokio",
17121524[[package]]
17131525name = "tokio-rustls"
17141526version = "0.26.5"
17281540 "bytes",
17291541 "futures-core",
17301542 "futures-sink",
1731 "libc",
17321543 "pin-project-lite",
17331544 "tokio",
18511662 "wasm-bindgen",
1854[[package]]
1855name = "vcpkg"
1856version = "0.2.15"
1857source = "registry+https://github.com/rust-lang/crates.io-index"
1858checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
18601665[[package]]
18611666name = "walkdir"
18621667version = "2.5.0"
19601765 "wasm-bindgen",
1768[[package]]
1769name = "web-time"
1770version = "1.1.0"
1771source = "registry+https://github.com/rust-lang/crates.io-index"
1772checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
1773dependencies = [
1774 "js-sys",
1775 "wasm-bindgen",
1778[[package]]
1779name = "webpki-roots"
1780version = "1.0.9"
1781source = "registry+https://github.com/rust-lang/crates.io-index"
1782checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
1783dependencies = [
1784 "rustls-pki-types",
19631787[[package]]
19641788name = "winapi"
19651789version = "0.3.9"
19821806source = "registry+https://github.com/rust-lang/crates.io-index"
19831807checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
19841808dependencies = [
1985 "windows-sys 0.61.2",
1809 "windows-sys 0.48.0",
19881812[[package]]
19971821source = "registry+https://github.com/rust-lang/crates.io-index"
19981822checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
2000[[package]]
2001name = "windows-registry"
2002version = "0.6.1"
2003source = "registry+https://github.com/rust-lang/crates.io-index"
2004checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
2005dependencies = [
2006 "windows-link",
2007 "windows-result",
2008 "windows-strings",
2011[[package]]
2012name = "windows-result"
2013version = "0.4.1"
2014source = "registry+https://github.com/rust-lang/crates.io-index"
2015checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
2016dependencies = [
2017 "windows-link",
2020[[package]]
2021name = "windows-strings"
2022version = "0.5.1"
2023source = "registry+https://github.com/rust-lang/crates.io-index"
2024checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
2025dependencies = [
2026 "windows-link",
20291824[[package]]
20301825name = "windows-sys"
20311826version = "0.48.0"

Cargo.toml

Modified

+58 / −30 text lines

1515version = "0.1.0"
1616license = "Apache-2.0"
18# Dependency tiers — law in .system/RULES.md (Dependencies); concrete map lives here.
19# vocabulary: ecosystem IR, sanctioned once, facade-exempt.
20# engines: one owning crate each, app vocabulary at boundaries, one stack per concern.
21# leaf: small utilities, direct use.
22# dev: tests and benches only.
23# build tools (cargo-machete, cargo-deny, cargo-audit, wasm-tools, pup):
24# xtask-installed --locked, never crate deps.
1826[workspace.dependencies]
27# vocabulary
1928serde = { version = "1", features = ["derive"] }
2029serde_json = { version = "1", features = ["preserve_order"] }
21tokio = { version = "1", features = ["full"] }
22clap = { version = "4", features = ["derive"] }
23clap_complete = "4"
24crossterm = "0.28"
25ratatui = "0.29"
26ciborium = "0.2"
30futures = "0.3"
2731thiserror = "2"
2832tracing = "0.1"
29tracing-subscriber = { version = "0.3", features = ["env-filter"] }
30reqwest = { version = "0.12", features = ["json", "stream"] }
31futures = "0.3"
32unicode-width = "0.2"
33unicode-segmentation = "1"
34syntastica = { version = "0.6", default-features = false, features = ["runtime-c2rust"] }
35syntastica-parsers = "0.6"
36fuzzy-matcher = "0.3"
37similar = "2"
38ignore = "0.4"
39grep = "0.4"
40grep-regex = "0.1"
41grep-searcher = "0.1"
42gix = { version = "0.83", default-features = false, features = ["blame", "blob-diff", "revision"] }
4333url = "2"
44oauth2 = "4"
45insta = "1"
46dirs = "5"
47jsonschema = "0.28"
35# engines
36reqwest = { version = "0.12", default-features = false, features = [
37 "json",
38 "stream",
39 "blocking",
40 "rustls-tls",
41] } # smith-ai, http stack
42ciborium = "0.2" # smith-core, cbor session codec
43tracing-subscriber = { version = "0.3", features = ["env-filter"] } # smith-cli, log output
44similar = "2" # diff
45ignore = "0.4" # search stack
46grep = "0.4" # search stack
47grep-regex = "0.1" # search stack
48grep-searcher = "0.1" # search stack
49gix = { version = "0.83", default-features = false, features = [
50 "blame",
51 "blob-diff",
52 "revision",
53] } # vcs
54oauth2 = "4" # smith-ai, oauth flows
55zstd = "0.13" # compression
56zip = { version = "2", default-features = false, features = ["deflate"] } # archives
57tar = "0.4" # archives
58flate2 = "1" # archives
59jsonschema = "0.28" # smith-ai, catalog validation
60sha2 = "0.10" # checksums
61ratatui = "0.29" # smith-tui, terminal stack (widgets)
62crossterm = "0.28" # smith-tui, terminal stack (backend)
63unicode-width = "0.2" # smith-tui, terminal stack
64unicode-segmentation = "1" # smith-tui, terminal stack
65syntastica = { version = "0.6", default-features = false, features = [
66 "runtime-c2rust",
67] } # smith-tui, highlighting
68syntastica-parsers = "0.6" # smith-tui, highlighting
69# wasmtime arrives with the wasm plugin law; owner smith-harness.
71# leaf utilities
4872uuid = { version = "1", features = ["v7", "serde"] }
73dirs = "5"
74fs2 = "0.4"
75nix = { version = "0.29", features = ["signal"] } # unix, smith-core process handling
76clap = { version = "4", features = ["derive"] }
77clap_complete = "4"
78fuzzy-matcher = "0.3"
80# dev
81insta = "1"
4982assert_cmd = "2"
5083assert_fs = "1"
5184proptest = "1"
5285expectrl = "0.9"
5386criterion = { version = "0.5", features = ["async_tokio"] }
54zstd = "0.13"
55sha2 = "0.10"
56zip = { version = "2", default-features = false, features = ["deflate"] }
57tar = "0.4"
58flate2 = "1"
59fs2 = "0.4"
87tokio = { version = "1", features = ["full"] } # dev-only until an explicit runtime decision
6189[profile.release]
6290opt-level = 3

deny.toml

Modified

+10 / −1 text lines

11[licenses]
2allow = ["Apache-2.0", "MIT", "Unicode-DFS-2016"]
2allow = [
3 "Apache-2.0",
4 "MIT",
5 "Unicode-3.0",
6 "Unicode-DFS-2016",
7 "ISC",
8 "BSD-3-Clause",
9 "MPL-2.0",
10 "CDLA-Permissive-2.0",
11]
312confidence-threshold = 0.8
514[bans]

smith-ai/Cargo.toml

Modified

+2 / −2 text lines

88path = "src/lib.rs"
1010[dependencies]
11smith = { path = "../smith" }
11smith = { path = "../smith", version = "0.1.0" }
1212futures = { workspace = true }
13reqwest = { workspace = true, features = ["blocking", "json"] }
13reqwest = { workspace = true }
1414serde = { workspace = true }
1515serde_json = { workspace = true }

smith-ai/src/transport.rs

Modified

+1 / −1 text lines

11//! Vendor HTTP transport: request bodies, posting, and SSE decoding.
22//!
3//! Body builders are pure functions over [`ProviderRequest`] so their vendor
3//! Body builders are pure functions over [`smith::provider::ProviderRequest`] so their vendor
44//! shapes are unit-tested without network. The transport posts and feeds the
55//! matching vendor decoder on a dedicated thread, surfacing normalized
66//! events through a channel-backed stream.

smith-cli/Cargo.toml

Modified

+2 / −2 text lines

1010doc = false
1212[dependencies]
13smith = { path = "../smith" }
14smith-harness = { path = "../smith-harness" }
13smith = { path = "../smith", version = "0.1.0" }
14smith-harness = { path = "../smith-harness", version = "0.1.0" }
1515clap = { workspace = true }
1616serde_json = { workspace = true }

smith-core/Cargo.toml

Modified

+2 / −3 text lines

88path = "src/lib.rs"
1010[dependencies]
11smith = { path = "../smith" }
11smith = { path = "../smith", version = "0.1.0" }
1212serde = { workspace = true }
1313serde_json = { workspace = true }
1414ciborium = { workspace = true }
15uuid = { workspace = true }
1615fs2 = { workspace = true }
1716futures = { workspace = true }
1817ignore = { workspace = true }
2019[target.'cfg(unix)'.dependencies]
21nix = { version = "0.29", features = ["signal"] }No final newline
20nix = { workspace = true }No final newline

smith-harness/Cargo.toml

Modified

+3 / −5 text lines

88path = "src/lib.rs"
1010[dependencies]
11smith = { path = "../smith" }
12smith-core = { path = "../smith-core" }
13smith-ai = { path = "../smith-ai" }
14smith-tui = { path = "../smith-tui" }
11smith = { path = "../smith", version = "0.1.0" }
12smith-core = { path = "../smith-core", version = "0.1.0" }
13smith-ai = { path = "../smith-ai", version = "0.1.0" }
1514futures = { workspace = true }
16serde = { workspace = true }
1715serde_json = { workspace = true }

smith-tui/Cargo.toml

Modified

+0 / −3 text lines

77[lib]
88path = "src/lib.rs"
9
10[dependencies]
11smith = { path = "../smith" }

smith/Cargo.toml

Modified

+1 / −1 text lines

1010[dependencies]
1111uuid = { workspace = true }
1212serde = { workspace = true }
13ciborium = { workspace = true }
1413serde_json = { workspace = true }
1514dirs = { workspace = true }
1615futures = { workspace = true }
1817[dev-dependencies]
1918criterion = { workspace = true }
19ciborium = { workspace = true }
2121[[bench]]
2222name = "message_creation"

xtask/src/main.rs

Modified

+62 / −2 text lines

3434/// Version of `cargo-binstall` used to install `cargo-nextest`.
3535const BINSTALL_VERSION: &str = "1.23.0";
36const DENY_VERSION: &str = "0.20.2";
37const AUDIT_VERSION: &str = "0.22.2";
3638const CRATES: &[&str] = &[
3739 "smith",
3840 "smith-core",
7880 cargo_pup,
7981 cargo_nextest,
8082 cargo_doc,
83 cargo_machete,
8184 ])
100103fn audit() -> ExitCode {
101 sequence(&[cargo_deny, cargo_audit])
104 sequence(&[install_deny, install_audit, cargo_deny, cargo_audit])
104107fn cargo_fmt() -> ExitCode {
117120 cargo(&[PINNED_NIGHTLY, "pup"])
123fn cargo_machete() -> ExitCode {
124 let installed = tool_present_bin("cargo-machete", "--version", || {
125 cargo(&["install", "--locked", "cargo-machete"])
126 });
127 if installed != ExitCode::SUCCESS {
128 return installed;
129 }
130 run("cargo-machete", &[])
131}
120133/// Install the external gate tools that Cargo cannot ship.
121134///
122135/// `cargo-nextest` arrives as a prebuilt binary through `cargo-binstall`;
124137/// pinned nightly with its rustc-dev dependency, which `rustup component
125138/// add` provides. Both steps are idempotent.
126139fn bootstrap() -> ExitCode {
127 let steps: [Step; 3] = [install_binstall, install_nextest, install_pup];
140 let steps: [Step; 6] = [
141 install_binstall,
142 install_nextest,
143 install_pup,
144 install_machete,
145 install_deny,
146 install_audit,
147 ];
128148 sequence(&steps)
151fn install_machete() -> ExitCode {
152 tool_present_bin("cargo-machete", "--version", || {
153 cargo(&["install", "--locked", "cargo-machete"])
154 })
155}
157fn install_deny() -> ExitCode {
158 tool_present_bin("cargo-deny", "--version", || {
159 cargo(&[
160 "binstall",
161 "--no-confirm",
162 &format!("cargo-deny@{DENY_VERSION}"),
163 ])
164 })
165}
167fn install_audit() -> ExitCode {
168 tool_present_bin("cargo-audit", "--version", || {
169 cargo(&[
170 "binstall",
171 "--no-confirm",
172 &format!("cargo-audit@{AUDIT_VERSION}"),
173 ])
174 })
175}
131177fn install_binstall() -> ExitCode {
132178 tool_present(&["binstall", "--help"], || {
133179 cargo(&[
202248 }
251/// Probes an external binary directly; cargo subcommand dispatch can mangle
252/// arguments, so build tools are probed and run as plain binaries.
253fn tool_present_bin(program: &str, flag: &str, install: impl FnOnce() -> ExitCode) -> ExitCode {
254 match Command::new(program)
255 .arg(flag)
256 .stdout(std::process::Stdio::null())
257 .stderr(std::process::Stdio::null())
258 .status()
259 {
260 Ok(status) if status.success() => ExitCode::SUCCESS,
261 _ => install(),
262 }
263}
205265fn cargo_doc() -> ExitCode {
206266 cargo(&["doc", "--workspace", "--no-deps"])