1 unstable release

0.1.0 May 28, 2021

#3 in #invariant

Download history 176/week @ 2024-05-20 83/week @ 2024-05-27 223/week @ 2024-06-03 211/week @ 2024-06-10 103/week @ 2024-06-17 149/week @ 2024-06-24 154/week @ 2024-07-01 106/week @ 2024-07-08 40/week @ 2024-07-15 187/week @ 2024-07-22 114/week @ 2024-07-29 201/week @ 2024-08-05 62/week @ 2024-08-12 148/week @ 2024-08-19 47/week @ 2024-08-26 135/week @ 2024-09-02

397 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