nom v1.0.0 Release Notes
Release Date: 2015-11-16 // over 8 years ago-
๐ Stable release for nom. A lot of new features, a few breaking changes
Thanks
- ๐ @ahenry for macro fixes
- ๐ @bluss for fixing documentation
- @sourrust for cleaning code and debugging the new streaming utilities
- @meh for inline optimizations
- @ccmtaylor for fixing function imports
- @soro for improvements to the streaming utilities
- โ๏ธ @breard-r for catching my typos
- โ๏ธ @nelsonjchen for catching my typos too
- ๐ @divarvel for hex string parsers
- @mrordinaire for the
length_bytes!
combinator
๐ฅ Breaking changes
IResult::Error
can now use custom error types, and is generic over the input type- ๐ Producers and consumers have been replaced. The new implementation uses less memory and integrates more with parsers
nom::ErrorCode
is nownom::ErrorKind
filter!
has been renamed totake_while!
- ๐
chain!
will count how much data is consumed and use that number to calculate how much data is needed if a parser returnedIncomplete
- ๐
alt!
returnsIncomplete
if a child parser returnedIncomplete
, instead of skipping to the next parser IResult
does not require a lifetime tag anymore, yay!
โ Added
- ๐
complete!
will return an error if the child parser returnedIncomplete
add_error!
will wrap an error, but allow backtracking- ๐
hex_u32
parser
๐ Fixed
- ๐ the behaviour around
Incomplete
is better for most parsers now