A proc-macro for generating a struct which can be overlaid. See the documentation for usage and examples.
Usage
This will create a wrapper struct around an array of bytes, with generated getters and setters for each "field", accessing the bytes/bits at the given offsets.
Todo
- Support for nested structs
- Support for individual fields larger than
u32? compile_error!()/ removeunwrap/expect- And use trybuild
- Emit a fake struct to avoid further errors about it
- Permit missing start/end in byte/bit ranges
- Upgrade to
syn2.0 - Don't drop all other attrs on enum members
- Turn off all syn (crate dep) features (except necessary)