mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-25 00:02:22 +00:00
A crate for mucking around with piles of bytes
cf944452b7
* add basic derive macro for Pod and Zeroable for structs * add derive macro for TransparentWrapper * use core::mem::size_of instead of std::mem::size_of in generated code * cleanup error handling a bit * remove unneeded iter logic * remove unneeded clone and order impl * fix generics * fix doc typo Co-authored-by: Lucien Greathouse <me@lpghatguy.com> * remove unneeded lifetime anotation * use unreachable for already rejected patch Co-authored-by: Lucien Greathouse <me@lpghatguy.com> |
||
---|---|---|
.github/workflows | ||
derive | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
changelog.md | ||
LICENSE-ZLIB.md | ||
pedantic.bat | ||
README.md | ||
rustfmt.toml |
bytemuck
A crate for mucking around with piles of bytes.
Extensions
There is experimental support for the Zeroable
trait being derived through a
proc-macro. I'm not the author of that crate, please file bugs with that crate
in the other repo.
Stability
The goal is to stay at 1.y.z until at least the next edition of Rust.
I consider any increase of the Minimum Rust Version to be a semver breaking change,
so rustc-1.34
will continue to be supported for at least the rest of the
bytemuck-1.y.z
series of the crate.
(The secret goal is to get all of this functionality into the standard library some day so that we don't even need to import a crate to do all this fun stuff.)