1 unstable release

0.1.0 May 28, 2021

#3 in #invariant

Download history 103/week @ 2024-07-28 208/week @ 2024-08-04 64/week @ 2024-08-11 145/week @ 2024-08-18 49/week @ 2024-08-25 133/week @ 2024-09-01 81/week @ 2024-09-08 109/week @ 2024-09-15 174/week @ 2024-09-22 113/week @ 2024-09-29 295/week @ 2024-10-06 146/week @ 2024-10-13 229/week @ 2024-10-20 167/week @ 2024-10-27 153/week @ 2024-11-03 375/week @ 2024-11-10

932 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