resource-bound-core

Crates.ioresource-bound-core
lib.rsresource-bound-core
version0.1.3
created_at2026-01-11 19:22:13.730301+00
updated_at2026-01-21 23:08:30.267363+00
descriptionCompile-time enforcement of struct size limits and heap allocation constraints
homepage
repository
max_upload_size
id2036278
size336,019
oOp (oOp995)

documentation

README

resource-bound-core 0.1.3

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.

Commit count: 0

cargo fmt