Trust 0.1.0 — strict Rust for the bugs LLMs actually ship
First public release. Trust is a strict Rust dialect for agent-written code: named arguments checked against declarations, a pipe operator, requires! precondition contracts, and 20 teaching-error lints — all lowered to plain Rust before stock rustc ever sees the file. In our 4-model, 3-vendor eval, ~60% of agent-authored files shipped an audited bug class in plain Rust; 0% shipped under Trust.
Install
cargo install trust-lang cargo-trustc trust-rustc trust-rustdocUse
[package.metadata.trust]
strict = truecargo trustc build # also: run, test — or scaffold fresh with `trust new`Highlights
- Zero-ceremony adoption: two lines in Cargo.toml, one command; workspace-wide opt-in via
[workspace.metadata.trust];#[cfg(test)]code stays plain Rust - The full rule set enforced at build — every diagnostic carries
why:andinstead:;--message-format jsonfor agents;trust fixauto-inserts argument names - Agent skills included:
trust newscaffolds a CLAUDE.md; install the writing-trust skill via/plugin marketplace add briannadoubt/Trust→/plugin install trust@trust-plugins - No fork, no runtime: stop using Trust tomorrow and the lowered output still builds
- Case studies (
heck,tre) converted end-to-end and green; eval harness, prompts, and every run log in-repo
Published crates: trust-lang (bin trust), cargo-trustc, trust-lsp, and the trust-{diag,lower,lints,syntax,std,rustc,rustdoc} libraries.
🤖 Generated with Claude Code