1 unstable release

0.1.0 May 28, 2021

#6 in #design-by-contract

Download history 79/week @ 2025-09-13 14/week @ 2025-09-20 127/week @ 2025-09-27 133/week @ 2025-10-04 58/week @ 2025-10-11 95/week @ 2025-10-18 56/week @ 2025-10-25 21/week @ 2025-11-01

1,310 downloads per month
Used in slitter

MIT license

4KB

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

Refer to that crate for semantics of the real macros.


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.

No runtime deps