resource-bound-core 0.1.0

Compile-time enforcement of struct size limits and heap allocation constraints
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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` 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.