Crates.io | disabled_contracts |
lib.rs | disabled_contracts |
version | 0.1.0 |
source | src |
created_at | 2021-05-28 01:45:47.463221 |
updated_at | 2021-05-28 01:45:47.463221 |
description | A clearly stub version of the `contracts` crate. |
homepage | |
repository | https://github.com/backtrace-labs/disabled_contracts |
max_upload_size | |
id | 402930 |
size | 4,894 |
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.