A crate for mucking around with piles of bytes
Go to file
Robin Appelman cf944452b7
add basic derive macro for Pod, Zeroable and TransparentWrapper for structs (#30)
* 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>
2020-08-20 19:04:36 -06:00
.github/workflows Update rust.yml 2020-08-17 15:43:51 -06:00
derive add basic derive macro for Pod, Zeroable and TransparentWrapper for structs (#30) 2020-08-20 19:04:36 -06:00
src add basic derive macro for Pod, Zeroable and TransparentWrapper for structs (#30) 2020-08-20 19:04:36 -06:00
tests add basic derive macro for Pod, Zeroable and TransparentWrapper for structs (#30) 2020-08-20 19:04:36 -06:00
.gitignore base files 2019-09-19 19:09:31 -06:00
Cargo.toml add basic derive macro for Pod, Zeroable and TransparentWrapper for structs (#30) 2020-08-20 19:04:36 -06:00
changelog.md update changelog. 2020-08-19 21:45:09 -06:00
LICENSE-ZLIB.md License change to an equally permissive OSI license 2019-11-25 18:45:54 -07:00
pedantic.bat base files 2019-09-19 19:09:31 -06:00
README.md readme note 2020-07-25 16:03:30 -06:00
rustfmt.toml Update rustfmt.toml 2020-08-09 14:59:43 -06:00

License:Zlib Minimum Rust Version crates.io docs.rs

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.)