Debian Codegraph @

changelog.md

raw
1
2 ## `bytemuck_derive` changelog
3
4 ## 1.12
5
6 * Updated the `syn` version from 2 to 3. Because `syn` is not a public
7 dependency of the crate this should not cause any change to users of the
8 crate. Please report any problems. MSRV is now 1.71
9
10 ## 1.11
11
12 * [Make derive(NoUninit) have the same constraints as Pod](https://github.com/Lokathor/bytemuck/pull/341)
13
14 ## 1.10.2
15
16 * [Extend #[derive(TransparentWrapper)](https://github.com/Lokathor/bytemuck/pull/147)
17
18 ## 1.10.1
19
20 * changes the derive macros to not use `transmute` size matching when checking
21 fof padding in a type. instead, an actual assert is used in a const block.
22
23 ## 1.10.0
24
25 * add support for deriving NoUninit on enums with fields.
26
27 ## 1.9.2
28
29 * Removes the `resolver` key from the manifest. This breaks the build
30 with cryptic error messages despite current docs vaguely saying otherwise.
31
32 ## 1.9.1
33
34 * Fix the derive of CheckedBitPattern when used with a packed struct.
35 The Debug impl did not account for possibly-unaligned fields.
36
37 ## 1.9.0
38
39 * The crate now declares an MSRV, so updates going forward should be simpler.
40
41 ## 1.8.1
42
43 * https://github.com/Lokathor/bytemuck/pull/287
44
45 ## 1.8
46
47 * [#257](https://github.com/Lokathor/bytemuck/pull/257): Allows deriving Zeroable on some enums.
48
49 ## 1.7.1
50
51 * Adds the `bytemuck` attribute to the `NoUninit` derive, allowing it to be used when re-exported.
52
53 ## 1.7.0
54
55 * Allow generics in `derive(ByteEq, ByteHash)` https://github.com/Lokathor/bytemuck/pull/219
56
57 ## 1.6.0
58
59 * This allows `CheckedBitPattern` to be derived for enums with fields.
60 The repr must be one of the following:
61 * `#[repr(C)]`
62 * `#[repr(C, int)]`
63 * `#[repr(int)]`
64 * `#[repr(transparent)]`
65
66 ## 1.5.0
67
68 * The `Zeroable` derive now allows custom bounds. See the rustdoc for an explanation.
69
70 ## 1.4.1
71
72 * Move the `syn` dependency to use version 2.
73 This should not affect the public API in any way.
74
75 ## 1.4.0
76
77 * `ByteEq` and `ByteHash` derives will make `Eq` and `Hash` impls that treat the
78 value as a `&[u8]` during equality checks and hashing. This provides a large
79 codegen improvement for some types.
80 * Derives of `repr(int)` enums should now accept byte literal values as the
81 discriminant.
82
83 ## 1.3.0
84
85 * Allow `repr(transparent)` to be used generically in `derive(Pod)`.
86
87 ## 1.2.1
88
89 * Fixed a regression of the `align(N)` attribute that occurred during otherwise
90 routine cleanup.
91
92 ## 1.2.0
93
94 * Apparently our minimum required version of `syn` went up without anyone
95 noticing for a while. Because of a bump in our `syn` requirements, we're also
96 issuing this minor version bump in the `bytemuck_derive` crate. Because it's
97 possible to *reduce* the minimum required version of a dep in only a patch
98 release, I'm going to ratchet the required version of `syn` all the way up to
99 "current" (1.0.99). If absolutely necessary we could probably reduce the
100 minimum `syn` version again in a patch release for 1.2, but I don't want to
101 play this dance too much so I'd rather make each jump as big as can possibly
102 be. [Issue 122](https://github.com/Lokathor/bytemuck/issues/122). **Note:**
103 While the core `bytemuck` crate continues to keep building on rustc-1.34.0,
104 the `bytemuck_derive` crate is considered an opt-in bonus feature (which
105 doesn't do anything you couldn't trivially do yourself) and so it does not
106 support a specific MSRV.
107
108 ## 1.1.1
109
110 * Adjusted the license files to use full files rather than symlinks.
111 [PR](https://github.com/Lokathor/bytemuck/pull/118)
112 The license is unchanged, just no more symlinks.
113
114 ## 1.1.0
115
116 * Updated to work with `bytemuck-1.9.0`
117
118 ## 1.0.1
119
120 * [yanchith](https://github.com/yanchith) fixed the derive checks code to make clippy more happy.
121 [PR 45](https://github.com/Lokathor/bytemuck/pull/45)
122
123 ## 1.0.0
124
125 * Initial stable release.