Repository navigation
Version 0.10.0 #156
jam1garner
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Breaking changes
The
read_byteshelper, deprecated since 0.2.0, has been removed. UseVec<u8>directly.The
NullStringandNullWideStringAPIs have been rewritten to use only standard Rust traits:T::from_string(s)From<String>orFrom<&str>s.into_string()s.to_string()orDisplaytraits.into_string_lossless()TryFrom<T> for StringtraitTwo
BinWriteAPI functions have been renamed for consistency with theBinReadAPI:BinWrite::write_to(...)BinWrite::write(...)BinWrite::write_with_args(...)BinWrite::write_args(...)New features
BufReaderwrapper significantly improves performance when reading from non-memory streams (Add BufReader wrapper with performance enhancements #141)NoSeekwrapper enables reading and writing non-seekable streams (Remove hard-dependency on Seek #6, Add NoSeek wrapper type for io::Read -> io::Read + io::Seek #78)BinRead,BinWrite, andFilePtr(NonZeroXXX integers #134)Enhancements
binread,binrw, andbinwriteattributes are now also part of the binrw preludeVec<u32>) (Performance:binrwvery slow when parsingVec<i8>#129)ifdirective is now also supported in#[bw]attributes (Addbw(if(expr))andbrw(if(expr))to skip writing conditionally #113, Implementifdirective for writes #146)Clonecountandargsare incorrectly combined, or when passing the wrong type toargs(br(count = ...)conflicts withbr(args(...))#112)no_stdimplementations of theReadandWritetraits to improve feature parity with thestdimplementationsDebugimplementations ofNullStringandNullWideStringno longer allocate memoryVecArgs#75, Improve documentation forBinrwNamedArgs#76, Documentation improvements #103, Basic performance documentation #142)Bug fixes
try_map = {closure}on a struct now generates valid codeargsdirectives now point to the correct location of the problemimpl BinWrite for Box<[u8]>is now actually selected by the compiler#![deny(missing_docs)]#124)binrw::args!NullStringandWideNullStringtypes are now correctly marked withEqBinWriteon unit structs no longer causes a panicpre_assertdirectives now correctly apply to unit enum valuesThis discussion was created from the release Version 0.10.0.
All reactions