2019-11-26 03:32:13 +00:00
|
|
|
# `bytemuck` changelog
|
|
|
|
|
2020-07-24 01:30:33 +00:00
|
|
|
## 1.3.0
|
|
|
|
|
2020-07-24 02:22:43 +00:00
|
|
|
* [HeroicKatora](https://github.com/HeroicKatora) added the
|
|
|
|
`try_zeroed_slice_box` function
|
|
|
|
[#10](https://github.com/Lokathor/bytemuck/pull/17).
|
|
|
|
* The `offset_of!` macro now supports a 2-arg version. For types that impl
|
|
|
|
Default, it'll just make an instance using `default` and then call over to the
|
|
|
|
3-arg version.
|
2020-07-24 12:53:43 +00:00
|
|
|
* The `PodCastError` type now supports `Hash` and `Display`. Also if you enable
|
|
|
|
the `extern_crate_std` feature then it will support `std::error::Error`.
|
2020-07-24 12:58:37 +00:00
|
|
|
* We now provide a `TransparentWrapper<T>` impl for `core::num::Wrapper<T>`.
|
2020-07-24 01:30:33 +00:00
|
|
|
|
2020-02-07 03:44:33 +00:00
|
|
|
## 1.2.0
|
|
|
|
|
|
|
|
* [thomcc](https://github.com/thomcc) added many things:
|
2020-07-24 02:22:43 +00:00
|
|
|
* A fully sound `offset_of!` macro
|
|
|
|
[#10](https://github.com/Lokathor/bytemuck/pull/10)
|
2020-02-07 03:44:33 +00:00
|
|
|
* A `Contiguous` trait for when you've got enums with declared values
|
|
|
|
all in a row [#12](https://github.com/Lokathor/bytemuck/pull/12)
|
|
|
|
* A `TransparentWrapper` marker trait for when you want to more clearly
|
|
|
|
enable adding and removing a wrapper struct to its inner value
|
|
|
|
[#15](https://github.com/Lokathor/bytemuck/pull/15)
|
|
|
|
* Now MIRI is run on CI in every sigle push!
|
|
|
|
[#16](https://github.com/Lokathor/bytemuck/pull/16)
|
|
|
|
|
2019-12-06 19:41:48 +00:00
|
|
|
## 1.1.0
|
|
|
|
|
|
|
|
* [SimonSapin](https://github.com/SimonSapin) added `from_bytes`,
|
|
|
|
`from_bytes_mut`, `try_from_bytes`, and `try_from_bytes_mut` ([PR
|
|
|
|
Link](https://github.com/Lokathor/bytemuck/pull/8))
|
|
|
|
|
2019-11-26 03:32:13 +00:00
|
|
|
## 1.0.1
|
|
|
|
|
|
|
|
* Changed to the [zlib](https://opensource.org/licenses/Zlib) license.
|
|
|
|
* Added much more proper documentation.
|
|
|
|
* Reduced the minimum Rust version to 1.34
|