trust-std 0.1.0

Standard library shims with named-arg signatures for Trust
Documentation
  • Coverage
  • 78.26%
    36 out of 46 items documented1 out of 35 items with examples
  • Size
  • Source code size: 15.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 478.42 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • briannadoubt/Trust
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • briannadoubt

Named-argument shims over std.

Each wrapper exists so Trust callers can write call sites with name: value syntax: fs::read_to_string(path: p) instead of the positional std::fs::read_to_string(p). The wrappers carry no logic; they exist purely to make parameter names part of the signature for Trust's named-args lowering pass.

This crate is #![strict]-marked as of RT-44. The build-time index STD_SIGNATURES (in trust-lower) used to be generated by parsing this file directly with syn, which would have broken the moment the file used any Trust-specific syntax. The current design generates a checked-in manifest at crates/trust-std/std-signatures.txt via cargo xtask gen-std-signatures (which lowers the source first, then parses), and trust-lower/build.rs reads that manifest. CI enforces freshness with cargo xtask gen-std-signatures --check.