From 0c69ee37f98ce616df5237cbe74952c2a28cc5cb Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 22 Jun 2024 12:05:11 -0700 Subject: VecSink only needs `alloc`, hide struct items --- CHANGELOG | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'CHANGELOG') diff --git a/CHANGELOG b/CHANGELOG index 3bc66ce..502b165 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,11 @@ TODO: impls of `fn one` and `fn zero` so downstream users don't have to import n ## 0.3.0 +added a new crate feature flag, `alloc`. + this flag is for any features that do not require std, but do require + containers from `liballoc`. good examples are `alloc::string::String` or + `alloc::vec::Vec`. + added `yaxpeax_arch::display::DisplaySink` after revisiting output colorization. `DisplaySink` is better suited for general markup, rather than being focused specifically on ANSI/console text coloring. `YaxColors` also simply does not @@ -20,9 +25,9 @@ added `yaxpeax_arch::display::DisplaySink` after revisiting output colorization. needs to be styled is only written to after intermediate buffering. `DisplaySink` also includes specializable functions for writing text to an -output, and the implementation for `alloc::string::String` takes advantage of -this: writing through `impl DisplaySink for String` will often be substantially -more performant than writing through `fmt::Write`. + output, and the implementation for `alloc::string::String` takes advantage of + this: writing through `impl DisplaySink for String` will often be substantially + more performant than writing through `fmt::Write`. added `yaxpeax_arch::safer_unchecked` to aid in testing use of unchecked methods these were originally added to improve yaxpeax-x86 testing: @@ -30,6 +35,11 @@ added `yaxpeax_arch::safer_unchecked` to aid in testing use of unchecked methods yaxpeax-arch as they're generally applicable and overall wonderful tools. thank you again 522! +made VecSink's `records` private. instead of extracting records from the struct + by accessing this field directly, call `VecSink::into_inner()`. + +made VecSink is now available through the `alloc` feature flag as well as `std`. + ## 0.2.8 added an impl of `From` for `StandardPartialDecoderError`, matching the existing `StandardDecodeError` impl. -- cgit v1.1