resource-bound-derive

Crates.ioresource-bound-derive
lib.rsresource-bound-derive
version0.1.3
created_at2026-01-11 20:09:30.449877+00
updated_at2026-01-21 23:35:10.365607+00
descriptionCompile-time enforcement of struct size limits and heap allocation constraints
homepagehttps://github.com/oOp995/resource-bound
repositoryhttps://github.com/oOp995/resource-bound
max_upload_size
id2036355
size12,551
oOp (oOp995)

documentation

https://docs.rs/resource-bound

README

resource-bound-derive

resource-bound-derive is a part of resource-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: 14

cargo fmt