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

24 commits

Author SHA1 Message Date
bf4d038c8d move benchmarks to iai-callgrind 2025-07-13 22:23:18 +02:00
Ondřej Soukeník
5390c96e94 Update merge to 0.2.0 in bitbuffer_derive.
The old merge 0.1.0 used proc-macro-error, which is unmaintained.
Fixes RUSTSEC-2024-0370 warning.
2025-07-09 09:53:34 +02:00
d6ea837c4e derive: dont try to parse attributes from outside the crate 2025-02-23 22:25:42 +01:00
⭐️NINIKA⭐️
1c05418784 prevent generated code from triggering unsafe_op_in_unsafe_fn in 2024 edition
wrap the usage of "unchecked" methods in unsafe blocks
2025-02-20 22:09:30 +03:00
d989565775 updates 2024-09-22 23:20:57 +02:00
5080caa936 docs 2024-04-04 23:11:14 +02:00
834c3f2f95 clippy fixes 2023-11-11 22:03:10 +01:00
3852f09dd5 rewrite derive macro 2023-09-28 18:53:22 +02:00
1310ec3673 supress clippy conversion warnings in derived code 2023-07-02 17:29:59 +02:00
Nikita Strygin
b9ff371f53 Suppress unused_braces warnings in the generated code 2023-02-06 23:21:16 +03:00
Nikita Strygin
f6e31f99d9 Implement #[align] in BinWrite 2023-02-06 22:22:39 +03:00
Nikita Strygin
b74c46afca Add #[align] to docs 2023-02-06 16:02:46 +03: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
bd7a4fca5b clippy fixes 2022-04-09 18:41:39 +02:00
eb4bafc310 use the smallest possible size int for descriminant reading/writing 2021-07-24 17:34:29 +02:00
b7fa549e79 fix size expressions 2021-07-13 19:10:09 +02:00
f704ee9f9a rountrip tests 2021-07-12 20:19:36 +02:00
23ed7b0e4a bunch of write stuff 2021-07-12 00:17:56 +02:00
01ff3b503a clippy 2020-12-06 01:14:53 +01:00
0c8d2ebe18 borrow data 2020-12-05 22:48:40 +01:00
a276e5a457 remove the need for padding by special casing reading near the end of the data 2020-12-05 21:41:32 +01:00
e43b0b6bb2 add write bytes and string and rename ReadError -> BitError 2020-02-15 15:49:49 +01:00
6fc3785fc9 rename bitbuffer/bitstream to bitreadbuffer/bitreadstream 2020-02-12 23:53:59 +01:00
0e58b89ae9 rename to bitbuffer to prepare for writing 2020-02-12 23:52:08 +01:00