disabled_contracts

Crates.iodisabled_contracts
lib.rsdisabled_contracts
version0.1.0
sourcesrc
created_at2021-05-28 01:45:47.463221
updated_at2021-05-28 01:45:47.463221
descriptionA clearly stub version of the `contracts` crate.
homepage
repositoryhttps://github.com/backtrace-labs/disabled_contracts
max_upload_size
id402930
size4,894
Samy Al Bahra (sbahra)

documentation

README

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.

Commit count: 1

cargo fmt