runtime-contracts

Crates.ioruntime-contracts
lib.rsruntime-contracts
version0.2.1
sourcesrc
created_at2024-02-07 15:41:58.685774
updated_at2024-11-08 18:13:35.545146
descriptionStructured, understandable runtime contracts.
homepagehttps://github.com/yonkeltron/runtime-contracts
repositoryhttps://github.com/yonkeltron/runtime-contracts.git
max_upload_size
id1130645
size12,820
Jonathan E. Magen (yonkeltron)

documentation

README

runtime-contracts: Structured, understandable runtime contracts for Rust.

For background, context, and usage examples, please see the crate documentation.

Bugs

If you find a problem, please open an issue. Suggestions are welcome!

Roadmap

  • Simple contracts expressable via straightforward utlity functions.
  • Contracts as functions/closures.
    • Would it be as simple as type RuntimeContractFunction<T> = dyn Fn(T) -> Result<T> or would we need more?
  • Contract composition (assume we at least want monoidal composition).
    • If contracts are functions, can we just use function composition?
    • Do we need or want a RuntimeContract struct to encapsulate contract specifics and provide combinators like Result and Option?
Commit count: 14

cargo fmt