| 1 | # Changelog |
| 2 | All notable changes to this project will be documented in this file. |
| 3 | |
| 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) |
| 5 | and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html), |
| 6 | specifically the [variant used by Rust](http://doc.crates.io/manifest.html#the-version-field). |
| 7 | |
| 8 | ## [1.2.3] - 2025-03-03 |
| 9 | ### Changed |
| 10 | - Fix tests for Rust 1.81. |
| 11 | - Declare Rust 1.51 as MSRV. |
| 12 | |
| 13 | ## [1.2.2] - 2022-10-28 |
| 14 | ### Changed |
| 15 | - Fix a couple of clippy warnings in the tests. |
| 16 | |
| 17 | ## [1.2.1] - 2022-02-25 |
| 18 | ### Changed |
| 19 | - Make trait methods `#[inline]`. This allows the compiler to make the call a |
| 20 | no-op in many cases. |
| 21 | |
| 22 | ## [1.2.0] - 2021-10-19 |
| 23 | ### Added |
| 24 | - Trait impls for converting between `&[[T; N]]` and `&[u8]` for specific `T`. |
| 25 | |
| 26 | ## [1.1.0] - 2021-09-16 |
| 27 | ### Added |
| 28 | - `ToByteSlice` and `ToMutByteSlice` impl for `&[()]`. This always produces an |
| 29 | empty byte slice. |
| 30 | |
| 31 | ## [1.0.0] - 2020-10-13 |
| 32 | ### Removed |
| 33 | - Support for casting between `Vec<T>` and `Vec<u8>`. This was actually |
| 34 | unsound as the alloc trait requires that memory is deallocated with exactly |
| 35 | the same alignment as it was allocated with. |
| 36 | |
| 37 | ### Fixed |
| 38 | - `usize` tests on 16/32 bit architectures. |
| 39 | |
| 40 | ### Changed |
| 41 | - Various documentation improvements. |
| 42 | |
| 43 | ## [0.3.5] - 2019-12-22 |
| 44 | ### Changed |
| 45 | - Improve documentation and examples |
| 46 | |
| 47 | ### Fixed |
| 48 | - Fix running of tests on 16/32 bit architectures |
| 49 | |
| 50 | ## [0.3.4] - 2019-11-11 |
| 51 | ### Added |
| 52 | - Support for casting between `Vec<T>` and `Vec<u8>` |
| 53 | |
| 54 | ## [0.3.3] - 2019-11-02 |
| 55 | ### Added |
| 56 | - Support for `usize` and `isize` |
| 57 | |
| 58 | ## [0.3.2] - 2019-07-26 |
| 59 | ### Changed |
| 60 | - Add `no_std` support |
| 61 | - Migrate to 2018 edition |
| 62 | |
| 63 | ## [0.3.1] - 2019-06-05 |
| 64 | ### Fixed |
| 65 | - Casting of empty slices works correctly now instead of failing with an |
| 66 | alignment mismatch error. |
| 67 | |
| 68 | ## [0.3.0] - 2019-05-11 |
| 69 | ### Added |
| 70 | - The `Error` type now implements `Clone`. |
| 71 | |
| 72 | ### Changed |
| 73 | - `AsByteSlice::as_byte_slice` and `ToByteSlice::to_byte_slice` were changed |
| 74 | to always return `&[u8]` instead of `Result<&[u8], Error>`. |
| 75 | - `AsMutByteSlice::as_mut_byte_slice` and `ToMutByteSlice::to_mut_byte_slice` |
| 76 | were changed to always return `&mut [u8]` instead of `Result<&mut [u8], |
| 77 | Error>`. |
| 78 | - The `Display` impl for `Error` now produces more detailed error messages. |
| 79 | - The variants of the `Error` enum were renamed. |
| 80 | |
| 81 | ## [0.2.0] - 2018-06-01 |
| 82 | ### Changed |
| 83 | - Major refactoring of how the traits work. It is now possible to work |
| 84 | directly on `AsRef<[T]>` and `AsMut<[T]>`, e.g. on `Vec<T>` and `Box<[T]>`. |
| 85 | |
| 86 | ### Added |
| 87 | - Trait impls for i128 and u128. |
| 88 | |
| 89 | ## [0.1.0] - 2017-08-14 |
| 90 | - Initial release of the `byte-slice-cast` crate. |
| 91 | |
| 92 | [Unreleased]: https://github.com/sdroege/byte-slice-cast/compare/1.2.3...HEAD |
| 93 | [1.2.3]: https://github.com/sdroege/byte-slice-cast/compare/1.2.2...1.2.3 |
| 94 | [1.2.2]: https://github.com/sdroege/byte-slice-cast/compare/1.2.1...1.2.2 |
| 95 | [1.2.1]: https://github.com/sdroege/byte-slice-cast/compare/1.2.0...1.2.1 |
| 96 | [1.2.0]: https://github.com/sdroege/byte-slice-cast/compare/1.1.0...1.2.0 |
| 97 | [1.1.0]: https://github.com/sdroege/byte-slice-cast/compare/1.0.0...1.1.0 |
| 98 | [1.0.0]: https://github.com/sdroege/byte-slice-cast/compare/0.3.5...1.0.0 |
| 99 | [0.3.5]: https://github.com/sdroege/byte-slice-cast/compare/0.3.4...0.3.5 |
| 100 | [0.3.4]: https://github.com/sdroege/byte-slice-cast/compare/0.3.3...0.3.4 |
| 101 | [0.3.3]: https://github.com/sdroege/byte-slice-cast/compare/0.3.2...0.3.3 |
| 102 | [0.3.2]: https://github.com/sdroege/byte-slice-cast/compare/0.3.1...0.3.2 |
| 103 | [0.3.1]: https://github.com/sdroege/byte-slice-cast/compare/0.3.0...0.3.1 |
| 104 | [0.3.0]: https://github.com/sdroege/byte-slice-cast/compare/0.2.0...0.3.0 |
| 105 | [0.2.0]: https://github.com/sdroege/byte-slice-cast/compare/0.1.0...0.2.0 |