| Crates.io | embed-struct |
| lib.rs | embed-struct |
| version | 0.1.1 |
| created_at | 2025-12-15 17:15:14.47054+00 |
| updated_at | 2025-12-31 18:40:23.535175+00 |
| description | Rust library for embedding data structures |
| homepage | https://github.com/aegistudio/embed-struct |
| repository | |
| max_upload_size | |
| id | 1986400 |
| size | 136,464 |
Rust library for embedding data structures.
It's quite common to amalgamate multiple data structures in order to achieve complex functionalities:
Hand-rolling these embedded data structure might be repetitive and error prone, so many frameworks or libraries provide facilities to embed them. For example, in the linux kernel, they have macros like list_add*, list_del* to embed doubly linked lists, and macros like rb_link_node, rb_erase* to embed rbtrees.
And if you want to do the same embedding stuffs in rust, this is what the library aims to provide.