nom8 changelog #186
epage
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background:
nom8
was a short-lived fork ofnom
to experiment with active proposals.winnow
is a long-term fork ofnom
that usednom8
as its base and has inheritednom8
s versioning.See also #94
winnow 0.3.0
Breaking Changes
General
winnow::multi
are now generic over the container via theAccumulate
traitwinnow::error::Error
'scode
field was renamed tokind
winnow::error::ErrorKind
for infinite loops, like inwinnow::multi
, was changed toErrorKind::Assert
winnow::error::Err
was renamed toErrMode
Error
variant was renamed toBacktrack
Fatal
variant was renamed toCut
From 0.2.0
winnow::input
towinnow::stream
winnow::stream::Stream
winnow::stream::InputIsStreaming
towinnow::stream::StreamIsPartial
const STREAMING: bool
to beingis_partial
/is_partial_supported
winnow::stream::Streaming
towinnow::stream::Partial
Partial::new
instead of being directly constructableParser::map_opt
was renamed toParser::verify_map
Parser::debug_err
was removed in favor of compiling with--features debug
winnow::character::u8
were merge intowinnow::character::dec_uint
winnow::character::i8
were merge intowinnow::character::dec_int
winnow::character::hex_u32
was replaced withwinnow::character::hex_uint
winnow::bytes::take_till
was renamed towinnow::bytes::take_till0
winnow::bytes::take_while
was renamed towinnow::bytes::take_while0
winnow::bytes::take_until
was renamed towinnow::bytes::take_until0
winnow::bytes::escaped
was moved towinnow::character::escaped
winnow::bytes::escaped_transform
was moved towinnow::character::escaped_transform
nom8 0.2.0 - 2022-12-27
Breaking Changes
From nom8
pub use bits::*;
into root namespace (fix(bits)!: Don't re-export in root namespace #52)error::error_to_u32
(fix(error)!: Remove error_to_u32 #54)aFrom 0.1.0
nom::character::char
in favor ofnom::bytes::one_of
(fix(bytes): Deprecate one-off char error reporting #45)IntoOutput
to allow reconstructing state (fix(input): Allow reconstructing input state #57)Deprecations
ParseError::from_char
in favor ofContextError
(fix(bytes): Deprecate one-off char error reporting #45)error::make_error
anderror::append_error
(fix(error): Deprecate make_error, append_eror #55)Feature
nom::input::Stateful
for attaching state to the input type (feat(input): Thread state through parsing #58)nom::input::Located
for tracking the input's location, along withParser::span
andParser::with_span
to capture it (feat(input): Thread state through parsing #58)Fixes
From 0.1.0
InputTakeAtPosition
forStreaming
nom8 0.1.0 - 2022-12-23
Breaking Changes
nom
tonom::input
(refactor!: Clarify module names #13)InputTakeAtPosition
functions to be explicit about complete vs streaming policyimpl ExtendInto for char
(fix(input)!: Removeimpl ExtendInto for char
#19)Parser
were moved tocombinator
module (fix!: Move core combinators to combinators mod #4)Deprecations
character::is_*
functions in favor ofAsChar
(fix: Deprecate character::is_* functions #25)*::complete::*
and*::streaming::*
parsers in favor of merged ones (feat: Auto-detect whether to use complete/streaming parser #28)map
,flat_map
,map_parser
in favor ofParser
functions (fix: Aim for one way of doing a parser #37)map_res
,map_opt
,complete
,verify
,value
,recognize_with_value
,context
,dbg_dmp
in favor ofParser
methods (feat: Move non-grammar combinators toParser
#40)into
in favor ofParser::output_into
andParser::err_into
(fix: Aim for one way of doing a parser #37, fix(parser)!: Split Parser::into into Parser::output_into and Parser::err_into #48)is_a
withtake_while1
thanks to newFindToken
impls (fix(bytes): Generalize byte/char APIs #44)is_not
withtake_till1
thanks to newFindToken
impls (fix(bytes): Generalize byte/char APIs #44)satisfy
withone_of
thanks to newFindToken
impls (fix(bytes): Generalize byte/char APIs #44)Parser::and
,Parser::or
in favor ofimpl Parser for <tuples>
andalt
(fix: Aim for one way of doing a parser #37)tuple
,pair
parser in favor of using tuples (feat(parser): impl Parser for tuples #42, fix(seq): Deprecate pair #46)Features
Streaming<I>
input type (feat: Auto-detect whether to use complete/streaming parser #28)character
and renamed to their rust types (fix: Move float parsing to character #38)one_of
,none_of
fromcharacter
tobytes
as they are more general (fix(bytes): Generalize byte/char APIs #44)character::anychar
tobytes::any
with a more generic return type (fix(bytes): Generalize byte/char APIs #44)Parser::by_ref
to allow using&mut impl Parser
as aParser
(refactor(multi): Reuse some length_data logic #34, fix(parser): Rename as_mut_parser to by_ref #41)impl Parser for <tuples>
as an alternative totuple(())
(feat(parser): impl Parser for tuples #42)impl Parser for (char|u8|&str|&[u8])
as an alternative toone_of
,char
, andtag
(feat(parser): impl Parsers for literals #47, Revert "feat(parser): impl Parser for range types" #50)Parser::map_res
,Parser::map_opt
,Parser::complete
,Parser::verify
,Parser::value
,Parser::with_recognized
,Parser::context
,Parser::dbg_err
(feat: Move non-grammar combinators toParser
#40)u8
/char
/ ranges of the prior, functions, and tuples of the prior whereverFindToken
is accepted (fix(bytes): Generalize byte/char APIs #44)take_while
,take_till
withFindToken
trait (fix(bytes): Generalize byte/char APIs #44)character::is_*
functions toAsChar
that were missing (fix!: Remove character::is_* in favor of AsChar #2)Fixes
fill
,iterator
,bits::bits
, andbits::byutes
from taking a function to taking aParser
(fix(multi): Switch 'fill' from taking Fn to Parser #10, fix(comb)!: Allow ParserIterator on parsers #11, feat(error): Centralize backtracking policy #120)length_data
andlength_value
now auto-detect complete/streaming, before were streaming only (feat: Auto-detect whether to use complete/streaming parser #28)hex_u32
is now generic over input (fix(number): Prep for merging complete/streaming #32)many_m_n
,count
(Clamp Vec::with_capacity to 64KiB to avoid OOM rust-bakery/nom#1545)Documentation
nom 7.1.0
Beta Was this translation helpful? Give feedback.
All reactions