https://github.com/backtrace-labs/disabled_contracts
A clearly stub implementation of https://crates.io/crates/contracts
https://github.com/backtrace-labs/disabled_contracts
Last synced: 10 months ago
JSON representation
A clearly stub implementation of https://crates.io/crates/contracts
- Host: GitHub
- URL: https://github.com/backtrace-labs/disabled_contracts
- Owner: backtrace-labs
- License: mit
- Created: 2021-05-28T01:36:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-28T01:44:56.000Z (over 4 years ago)
- Last Synced: 2025-03-09T04:36:06.606Z (10 months ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.