All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Introduce
read_array<const N: usize>()method that returns[u8; N]whereNis specified as a compile time constant.
- Update to Rust 2024 edition. Minimum supported Rust version is now 1.93.0.
- Implement
FromReaderforBox<str>,String,Box<[u8]>andVec<u8>. This makes it easy to read rest of the Input with Reader::read_be().
- Use
Ipv4AddrandIpv6Addrfromcore::net. This makes them usable also inno_stdenvironments.
- Introduce
read_cstring()method to read null terminated strings.
- Introduce
Readabletrait that can be implemented by a data structure which can be constructed by reading bytes using untrusted::Reader.
- Update to Rust 2021 edition. Minimum supported Rust version is 1.56.0.
- Introduce methods
read_be()andread_le()to read as many bytes as required to instantiate a specific type (for examplelet count: u32 = reader.read_be()).
- Bump untrusted to version 0.9.0.
- Bump untrusted to version 0.7.0.
- Removed feature gate for
i128since 128bit integers are included in stable Rust.
- Added
std::error::Errorimplementation foruntrustended::Error(#2). - Added support for 128-bit integers. Support can be enabled with
i128feature (commit).
- Things happened. Code appeared.