1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00
Commit graph

3 commits

Author SHA1 Message Date
d6ea837c4e derive: dont try to parse attributes from outside the crate 2025-02-23 22:25:42 +01:00
Nikita Strygin
e33aa2f776 Add #[align] attribute to structs
This attribute aligns the reader to byte boundary

It can be applied to enums & structs to align before reading any fields or the discriminant

It can also be applied to individual struct fields to align the reader before reading the field

Finally, you can apply it to non-unit enum variants to align the reader after reading the discriminant, but before reading the payload
2023-02-06 15:49:33 +03:00
23ed7b0e4a bunch of write stuff 2021-07-12 00:17:56 +02:00
Renamed from bitbuffer_derive/tests/test.rs (Browse further)