Releases: google/zerocopy
Releases · google/zerocopy
v0.8.39
Immutable
release. Only release title and notes can be modified.
v0.8.38
v0.8.37
Immutable
release. Only release title and notes can be modified.
What's Changed
- [macros] Fix doc bug in
transmute_mut!by @joshlf in #2951 - [layout] Support sized->unsized, sized->sized casts by @joshlf in #2950
- Support sized-to-unsized
transmute_{ref,mut}!by @joshlf in #2943 - Support unsized
try_transmute_{ref,mut}!by @joshlf in #2944
Full Changelog: v0.8.36...v0.8.37
v0.8.36
v0.8.35
Immutable
release. Only release title and notes can be modified.
What's Changed
- [transmute] Remove
SizeEqsuper-trait bound by @joshlf in #2920 - [transmute] Remove some
SizeEqimpls by @joshlf in #2922 - Introduce
ProjectFieldtrait by @jswrenn in #2886 - [derive] In tests, assert hygiene of output by @joshlf in #2918
- Replace
unsafe_with_size_eq!withtransmute_withby @joshlf in #2923 - Introduce
ReadOnly<T>which is unconditionallyImmutableby @joshlf in #2866 - [transmute] Encode cast in
TryTransmuteFromPtrparams by @joshlf in #2921 - [projection] Clarify comment explaining fallibility by @joshlf in #2939
- [project] Support projecting enum tags by @joshlf in #2940
- Use
ReadOnlyinTryFromBytes::is_bit_validby @joshlf in #2873 - [derive] Allow
TryFromByteson non-Immutableunions by @joshlf in #2876 - [util]
usemore items to make code more concise by @joshlf in #2942 - Simplify
try_transmute!(and friends) internals by @joshlf in #2938
Full Changelog: v0.8.34...v0.8.35
v0.8.34
Immutable
release. Only release title and notes can be modified.
What's Changed
- Generate trait implementations for tuples by @jswrenn in #2862
- Simplify MutationCompatible impls by @joshlf in #2877
- [derive] Refactor is_bit_valid tests by @joshlf in #2879
- [derive] Unify handling of #[allow] attributes by @joshlf in #2882
- Rename
HasField::projecttoHasField::project_rawby @jswrenn in #2884 - Introduce
HasField::project_innerby @jswrenn in #2885 - [derive] Fix unused variable bug in tests by @joshlf in #2891
- [derive] Rename module ext -> util by @joshlf in #2892
- Tighten impl of CastUnsized by @joshlf in #2887
- Simplify projection methods by @joshlf in #2895
- Fix stale comments by @joshlf in #2896
- [derive] Split repr(C) logic from derive_known_layout_inner by @joshlf in #2888
- [derive] Move find_zero_variant to enum module by @joshlf in #2889
- [derive] Introduce Ctx type by @joshlf in #2890
- [derive] Improve hygiene testing by @joshlf in #2898
- [derive] Factor out
core_reexportpath generation by @joshlf in #2899 - [derive] Refactor into more modules by @joshlf in #2901
- [derive] Store output test goldens in separate files by @joshlf in #2904
- [derive] Automatically bless output test output by @joshlf in #2905
- [cast] Fix safety comment bug for CastUnsized by @joshlf in #2908
- Clarify semantics of size-preserving transmutes by @joshlf in #2911
- Make SizeEq safe by @joshlf in #2907
- [tools] Remove now-obsolete
rm Cargo.lockby @joshlf in #2916 - [derive] Avoid ambiguities referring to associated items by @joshlf in #2917
New Contributors
- @salmanmkc made their first contribution in #2914
Full Changelog: v0.8.33...v0.8.34
v0.8.33
v0.8.32
Immutable
release. Only release title and notes can be modified.
What's Changed
- Add regression test for suppressing
private_boundslint inKnownLayoutderive by @google-labs-jules[bot] in #2791 - Add tests targeted at un-covered lines of code by @joshlf in #2833
- [ci] In check_todo.sh, permit disabling check by @joshlf in #2839
- [cargo-zerocopy] Auto-install env var toggle by @joshlf in #2840
- Add more instructions for coding agents by @joshlf in #2834
- Introduce
HasFieldtrait by @jswrenn in #2842 - [agents] Add instructions for reviewing by @joshlf in #2855
- Add
HasField::project; simplifyis_bit_validby @jswrenn in #2843 - [project] Distinguish structs/union/enums by @joshlf in #2857
- [derive] Document use of
Fieldtrait by @joshlf in #2865 - [pointer] Add generic projection/cast framework by @joshlf in #2860
- Optimize Ref<_, T> methods when T: Sized (#2752) by @bmberger in #2758
New Contributors
Full Changelog: v0.8.31...v0.8.32
v0.8.31
v0.8.30
UPGRADING NOTE: #2804, we invert the order of --cfgs passed by our build.rs script. This will be transparent to cargo users, but if you vendor zerocopy and build it by invoking rustc directly, you will need to update your --cfgs. Assuming you're on a relatively recent toolchain, you should simply stop passing any --cfgs when building zerocopy. For more details, see #2259.
What's Changed
- Update AGENTS.md with pre-submission check instruction by @google-labs-jules[bot] in #2792
- docs: Add safety instructions to AGENTS.md by @google-labs-jules[bot] in #2794
- Fix Miri symbolic alignment check failures by @google-labs-jules[bot] in #2798
- docs: Update AGENTS.md to mandate 'yes | ./cargo.sh' by @google-labs-jules[bot] in #2799
- Add missing copyright headers and audit instructions by @google-labs-jules[bot] in #2795
- [ci] Add MSRV minimality check by @joshlf in #2812
- Suppress deprecation warnings in generated code by @google-labs-jules[bot] in #2797
- Fix safety comment citations by @google-labs-jules[bot] in #2800
- Invert build.rs version detection flags and update CI by @joshlf in #2804
- [ci] Integrate action-validator into CI and pre-push hooks by @joshlf in #2811
Full Changelog: v0.8.29...v0.8.30