disabled_contracts 0.1.0

A clearly stub version of the `contracts` crate.
Documentation
  • Coverage
  • 9.09%
    1 out of 11 items documented0 out of 10 items with examples
  • Size
  • Source code size: 4.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 276.84 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • backtrace-labs/disabled_contracts
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pkhuong github:backtrace-labs:team sbahra

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.