sigma-types-macros

Crates.iosigma-types-macros
lib.rssigma-types-macros
version0.1.0
sourcesrc
created_at2025-01-20 00:54:54.838364+00
updated_at2025-01-20 00:54:54.838364+00
descriptionMacros to enhance the `sigma-types` crate
homepagehttps://github.com/wrsturgeon/sigma-types-macros
repositoryhttps://github.com/wrsturgeon/sigma-types-macros
max_upload_size
id1523438
size102,616
Will Sturgeon (wrsturgeon)

documentation

README

Macros to enhance the sigma-types crate

Universal type safety

The #[forall] macro automatically writes a test that ensures that, for any possible inputs, a function never panics (which would indicate a broken sigma-type guarantee). This helps enforce a consistent paradigm in which any "invariants" or special caveats ought to be readable directly off an item's type signature for its end-users: if a certain input combination causes a function to fail, then it ought to be explicitly disallowed at the type level. (Internally, this uses quicheck to do most of the heavy lifting.)

Commit count: 0

cargo fmt