marine
marine copied to clipboard
Update Rust crate nom to v7
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
nom | dependencies | major | 5.1 -> 7.1 |
Release Notes
Geal/nom
v7.1.1
v7.1.0
Thanks
- @nickelc
- @Stargateur
- @NilsIrl
- @clonejo
- @Strytyp
- @schubart
- @jihchi
- @nipunn1313
- @Gungy2
- @Drumato
- @Alexhuszagh
- @Aehmlo
- @homersimpsons
- @dne
- @epage
- @saiintbrisson
- @pymongo
Changed
- documentation fixes
- Ci fixes
- the move to minimal-lexical for float parsing introduced bugs that cannot be resolved right now, so this version moves back to using the standard lib' parser. This is a performance regression*. If you have specific requirements around float parsing, you are strongly encouraged to use recognize_float and another library to convert to a f32 or f64
Added
- alt now works with 1 elment tuples
v7.0.0
This release fixes dependency compilation issues and strengthen the minimum supported Rust version (MSRV) policy. This is also the first release without the macros that were used since nom's beginning.
Thanks
Added
-
take_until1
combinator - more
to_owned
implementations -
fail
: a parser that always fail, useful as default condition in other combinators - text to number parsers: in the
character::streaming
andcharacter::complete
modules, there are parsers namedi8, u16, u32, u64, u128
andu8 ,u16, u32, u64, u128
that recognize decimal digits and directly convert to a number in the target size (checking for max int size)
Removed
- now that function combinators are the main way to write parsers, the old macro combinators are confusing newcomers. THey have been removed
- the
BitSlice
input type from bitvec has been moved into the nom-bitvec crate. nom does not depend on bitvec now - regex parsers have been moved into the nom-regex crate. nom does not depend on regex now
-
ErrorKind::PArseTo
was not needed anymore
Changed
- relax trait bounds
- some performance fixes
-
split_at_position*
functions should now be guaranteed panic free - the
lexical-core
crate used for float parsing has now been replaced withminimal-lexical
: the new crate is faster to compile, faster to parse, and has no dependencies
Fixed
- infinite loop in
escaped
combinator -
many_m_n
now fails if min > max
v6.2.1
Thanks
This release was done thanks to the hard work of (by order of appearance in the commit list):
Fixed
- fix documentation building
v6.2.0
Thanks
This release was done thanks to the hard work of (by order of appearance in the commit list):
- @DavidKorczynski
- @homersimpsons
- @kornelski
- @lf-
- @lewisbelcher
- @ronan-d
- @weirane
- @heymind
- @marcianx
- @Nukesor
Added
- nom is now regularly fuzzed through the OSSFuzz project
Changed
- lots of documentation fixes
- relax trait bounds
- workarounds for dependency issues with bitvec and memchr
v6.1.2
Changed
- Fix cargo feature usage in previous release
v6.1.1
Thanks
This release was done thanks to the hard work of (by order of appearance in the commit list):
Changed
- Fix dependenciy incompatibilities: Restrict the bitvec->funty dependency to <=1.1
v6.1.0
Thanks
This release was done thanks to the hard work of (by order of appearance in the commit list):
Changed
- readme and documentation fixes
- rewrite of fold_many_m_n
- relax trait bounds on some parsers
- implement
std::error::Error
onVerboseError
v6.0.1
Thanks
This release was done thanks to the hard work of (by order of appearance in the commit list):
- @Leonqn
- @nickelc
- @toshokan
- @juchiast
- @shssoichiro
- @jlkiri
- @chifflier
- @fkloiber
- @Kaoet
- @Matthew Plant
Added
-
ErrorConvert
implementation forVerboseError
Changed
- CI fixes
-
fold_many*
now acceptFnMut
for the accumulation function - relaxed input bounds on
length_count
v6.0.0
Thanks
This release was done thanks to the hard work of (by order of appearance in the commit list):
- @chifflier
- @shepmaster
- @amerelo
- @razican
- @Palladinium
- @0ndorio
- Sebastian Zivota
- @keruspe
- @devonhollowood
- @parasyte
- @nnt0
- @AntoineCezar
- @GuillaumeGomez
- @eijebong
- @stadelmanma
- @sphynx
- @snawaz
- @fosskers
- @JamesHarrison
- @calebsander
- @jthornber
- @ahmedcharles
- @rljacobson
- @benkay86
- @georgeclaghorn
- @TianyiShi2001
- @shnewto
- @alfriadox
- @resistor
- @myrrlyn
- @chipsenkbeil
- @ruza-net
- @fanf2
- @jameysharp
- @FallenWarrior2k
- @jmg-duarte
- @ericseppanen
- @hbina
- Andreas Molzer
- @nickelc
- @bgourlie
v5.1.2
v5.1.1
Thanks
- @Alexhuszagh for float fixes
- @AlexanderEkdahl, @JoshOrndorff, @akitsu-sanae for docs fixes
- @ignatenkobrain: dependency update
-
@derekdreery:
map
implementation for errors - @Lucretiel for docs fixes and compilation fixes
- adytzu2007: warning fixes
- @lo48576: error management fixes
Fixed
- C symbols compilation errors due to old lexical-core version
Added
-
Err
now has amap
function
Changed
- Make
error::context()
available withoutalloc
feature
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.