1 unstable release

0.1.0 May 28, 2021

#29 in #invariants

Download history 67/week @ 2024-01-01 148/week @ 2024-01-08 242/week @ 2024-01-15 142/week @ 2024-01-22 264/week @ 2024-01-29 110/week @ 2024-02-05 81/week @ 2024-02-12 248/week @ 2024-02-19 207/week @ 2024-02-26 84/week @ 2024-03-04 333/week @ 2024-03-11 298/week @ 2024-03-18 215/week @ 2024-03-25 107/week @ 2024-04-01 152/week @ 2024-04-08 95/week @ 2024-04-15

569 downloads per month
Used in slitter

MIT license

4KB

disabled_contracts: a stub implementation of https://crates.io/crates/contracts

The contract macros are useful for development. However, it's important for performance sensitive code to obviously not incur any overhead from the annotations.

The stub macros in this crate help achieve that: code can switch between that and the real contracts crate depending on features, and the contract code does not even have to build anymore, so any helpers for the checking logic can also be conditionalised.


lib.rs:

Obviously no-op versions of the contracts crate's macros.

Refer to that crate for semantics of the real macros.

No runtime deps