#contract #amount

runtime-contracts

Structured, understandable runtime contracts

6 releases

0.2.1 Nov 8, 2024
0.2.0 Feb 12, 2024
0.1.3 Feb 9, 2024

#6 in #amount

Download history 4/week @ 2024-12-04 1/week @ 2024-12-11 3/week @ 2025-02-12

310 downloads per month

Apache-2.0

10KB
51 lines

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?

Dependencies

~215–660KB
~15K SLoC