io-pass
io-pass is a dependency-free Rust library for the logic of passing owned
values through named gates and transformations.
use ;
let mut passage = new;
passage.push?;
passage.push?;
let result = passage.run;
assert!;
# Ok::
Pass principles
- Every stage receives ownership of one value.
- A stage must explicitly pass or block.
- Blocking returns both the value and an application-defined reason.
- A passage stops at the first block; later stages are not called.
- Every attempted stage appears in an ordered trace.
- Stage names are unique so trace entries remain unambiguous.
- Read-only inspections preserve the value in both branches.
- Transformations can normalize a value before later gates.
PassToken<T>models a single-use handoff through ownership.- Empty passages act as identity pipelines.
The crate has no external dependencies and uses no unsafe code.
Licensed under MIT.