resource-bound-core 0.1.2

Compile-time enforcement of struct size limits and heap allocation constraints
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 196.62 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • oOp995

resource-bound-core

resource-bound-core is a part of rsource-bound crate and not designed to work solely,the main usage is in resource-bound crate, refer to resource-bound

resource-bound

resource-bound is a procedural macro crate that enforces compile-time resource constraints on Rust structs.

It allows you to:

  • enforce a maximum struct size at compile time
  • disallow heap allocation by default
  • explicitly opt in to heap usage when required
  • catch violations early, with zero runtime cost

This crate is intentionally conservative, explicit, and honest about what Rust can and cannot guarantee at compile time.