Debian Codegraph @

CHANGELOG.md

raw
1 # Changelog
2 All notable changes to this project will be documented in this file.
3
4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7 ## [Unreleased]
8
9 ## [0.19.5] - 2026-07-25
10
11 ### Added
12 - Include the Apache 2.0 and MIT license files in the `bitfield-macros` package.
13
14 ### Changed
15 - Explain the MSB and LSB abbreviations in the README.
16 - Upgrade `bitfield-macros` to `syn` 3.
17 - Reduce stack usage in the `bitfield-macros` parser by boxing large enum variants.
18
19 ## [0.19.4] - 2025-11-16
20
21 ### Added
22 - Support `try_into` keyword in field definition to use `TryInto` instead of `Into`
23
24 ### Fixed
25 - Print the correct error message on incorrect use of the `impl` in `no_std` crates, thanks to @stop5 for reporting and proposing the fix
26
27 ## [0.19.3] - 2025-10-10
28
29 ### Added
30 - In debug mode, check that msb >= lsb in the default `BitRange`/`BitRangeMut` implementations and show a more helpful
31 message than before if this is the case, thanks to @blaine-dodson for reporting
32 - Mention MSB and LSB ordering in the readme
33 - Explain sign extension and valid range of signed field in the readme
34
35 ## [0.19.2] - 2025-08-24
36
37 ### Fixed
38 - Allow usage of a signed int types for the base of newtype, thanks to @FeeeeK
39
40 ## [0.19.1] - 2025-05-14
41
42 ### Fixed
43 - Allow to use `impl new` with `#[deny(missing_docs)]`.
44
45 ## [0.19.0] - 2025-02-23
46
47 ### Fixed
48 - Allow to specify an array of bools.
49
50 ### Breaking Changes
51 - If the type of an array field is exactly `bool`, then the `Bit`/`BitMut` traits are used instead of
52 `BitRange`/`BitRangeMut`. In some very unlikely case where the traits are implemented manually, this may break
53 existing code.
54
55 ## [0.18.1] - 2025-01-29
56
57 ### Fixed
58 - Don't use `__bitfield_*` macros from the code generated by the proc-macros. Otherwise, they need to be imported by
59 the calling code.
60 - Allow `mask`, `from` and `ìnto` as getter names.
61
62 ## [0.18.0] - 2025-01-27
63
64 ### Fixed
65 - With the new proc macro implementation some corner-cases that were not handled are now handled correctly.
66
67 ### Breaking Changes
68 - The syntax to create a constructor by specifying individual fields has been removed.
69 - Some syntax that was supposed to be internal and implementation details are now rejected.
70
71 ## [0.17.0] - 2024-09-08
72
73 ### Breaking Changes
74 - Changes published as 0.16.2 (version now yanked) was breaking
75
76 ## [0.16.2] - 2024-09-07
77
78 ### Added
79 - Allow creating bitfield structs with arbitrary visibilities, thanks to @ADSteele916
80
81 ## [0.16.1] - 2024-07-25
82
83 ### Added
84 - Implement bitwise operations for all array-Like inner types, using `AsRef`/`AsMut`, thanks to @PokeJofeJr4th
85 - Allow to derive constructors, thanks to @PokeJofeJr4th
86
87 ## [0.16.0] - 2024-07-22
88
89 ### Added
90 - Easily Derive Bitwise Operations, thanks to @PokeJofeJr4th
91
92 ### Breaking Changes
93 - The minimum rustc version is now 1.79.0
94
95 ## [0.15.0] - 2024-04-09
96
97 ### Added
98 - Allow to generate mask for a field
99
100 ### Breaking Changes
101 - The minimum rustc version is now 1.46.0
102
103 ## [0.14.0] - 2022-07-11
104
105 ### Added
106 - Getters work with immutable Data
107
108 ### Breaking Changes
109 - The minimum rustc version is now 1.31.0
110 - The setters of the `BitRange` and `Bit` has been separated in the `BitRangeMut` and `BitMut` traits.
111
112 ## [0.13.2] - 2019-05-28
113
114 ### Added
115 - `from into` can be used in place of `from` to change the input type of the setter. Thanks to @roblabla
116
117 [Unreleased]: https://github.com/dzamlo/rust-bitfield/compare/v0.19.5...HEAD
118 [0.19.5]: https://github.com/dzamlo/rust-bitfield/compare/v0.19.4...v0.19.5
119 [0.19.4]: https://github.com/dzamlo/rust-bitfield/compare/v0.19.3...v0.19.4
120 [0.19.3]: https://github.com/dzamlo/rust-bitfield/compare/v0.19.2...v0.19.3
121 [0.19.2]: https://github.com/dzamlo/rust-bitfield/compare/v0.19.1...v0.19.2
122 [0.19.1]: https://github.com/dzamlo/rust-bitfield/compare/v0.19.0...v0.19.1
123 [0.19.0]: https://github.com/dzamlo/rust-bitfield/compare/v0.18.1...v0.19.0
124 [0.18.1]: https://github.com/dzamlo/rust-bitfield/compare/v0.18.0...v0.18.1
125 [0.18.0]: https://github.com/dzamlo/rust-bitfield/compare/v0.17.0...v0.18.0
126 [0.17.0]: https://github.com/dzamlo/rust-bitfield/compare/v0.16.2...v0.17.0
127 [0.16.2]: https://github.com/dzamlo/rust-bitfield/compare/v0.16.0...v0.16.2
128 [0.16.1]: https://github.com/dzamlo/rust-bitfield/compare/v0.16.0...v0.16.1
129 [0.16.0]: https://github.com/dzamlo/rust-bitfield/compare/v0.15.0...v0.16.0
130 [0.15.0]: https://github.com/dzamlo/rust-bitfield/compare/v0.14.0...v0.15.0
131 [0.14.0]: https://github.com/dzamlo/rust-bitfield/compare/v0.13.2...v0.14.0
132 [0.13.2]: https://github.com/dzamlo/rust-bitfield/compare/v0.13.1...v0.13.2