Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 2.57 KB

File metadata and controls

78 lines (52 loc) · 2.57 KB

Changelog

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.

[0.4.5] — 2026-02-20

Added

  • Introduce read_array<const N: usize>() method that returns [u8; N] where N is specified as a compile time constant.

Changed

  • Update to Rust 2024 edition. Minimum supported Rust version is now 1.93.0.

[0.4.4] — 2025-09-16

Added

  • Implement FromReader for Box<str>, String, Box<[u8]> and Vec<u8>. This makes it easy to read rest of the Input with Reader::read_be().

Changed

  • Use Ipv4Addr and Ipv6Addr from core::net. This makes them usable also in no_std environments.

[0.4.3] — 2025-06-18

Added

  • Introduce read_cstring() method to read null terminated strings.

[0.4.2] - 2025-01-13

Added

  • Introduce Readable trait that can be implemented by a data structure which can be constructed by reading bytes using untrusted::Reader.

[0.4.1] - 2024-01-03

Changed

  • Update to Rust 2021 edition. Minimum supported Rust version is 1.56.0.

[0.4.0] - 2021-07-19

Added

  • Introduce methods read_be() and read_le() to read as many bytes as required to instantiate a specific type (for example let count: u32 = reader.read_be()).

Changed

[0.3.0] - 2019-07-30

Changed

  • Bump untrusted to version 0.7.0.
  • Removed feature gate for i128 since 128bit integers are included in stable Rust.

[0.2.1] - 2017-10-03

Added

[0.2.0] - 2017-09-23

Changed

  • Bump untrusted to version 0.6.0.
  • Rename read_bytes() to read_bytes_less_safe() (commit).

[0.1.0] - 2017-08-01

  • Things happened. Code appeared.