Improvements:
Internal:
- Remove build status from README
- Fix compilation warning in example
Improvements:
Documentation fix:
Breaking change:
This is likely the last 3.x.x release, and 4.0.0 will use nom 7 instead of nom 6.
Improvements:
Documentation fix:
Fixes:
- Generalize FindSubstring impl to types other than &'a str
- no_std support
Other changes:
- Switched CI from Travis to Github Actions
- Always run 'cargo fmt' on the CI
Fix:
Documentation fixes/updates:
- README.md: Update example code block from the documentation
- Fix erroneous backticks in documentation + Update documentation from README and nom
Breaking change:
Other change:
This release mostly brings some new trait implementations for convenience.
- Change tests text for copyright reasons
- Implement
From<T>
forLocatedSpan
- Implement
Deref
forLocatedSpan
, returning the fragment - Optionally implement
StableDeref
as well, if thestable-deref-trait
feature is enabled. - Generalize
Compare
- Generalize
HexDisplay
, and deprecated theimpl_hex_display!
macro which no longer does anything - Add
LocatedSpan::get_line_beginning
, which returns the beginning of a line up to the end of the LocatedSpan. Useful to display human-friendly errors.
This release brings several breaking changes:
- Error type for "position" is made generic
extra
property is now ignored when comparing LocatedSpan- Dependency on nom now uses with
default-features = false
offset
/line
/fragment
are now private attributes of theLocatedSpan
structure, to fix an undefined behavior is they are modified. You now have to use thelocation_offset()
,location_line()
, andfragment()
getters instead.LocatedSpanEx
is removed in favour of adding a generic type parameter toLocatedSpan
which defaults to to()
Additionally, there are a few documentation improvements:
- LocatedSpan should not be constructed in the middle of a parser.
- Fix typo in extra property docs for LocatedSpan
Finally, LocatedSpan
now implements Display
We decided that the crate was mature enough to release the version 1.0.0. It doesn't bring much new things, still we are proud of this big move! 🎉
Thanks to the people who made this release: @ProgVal, @peckpeck, @wycats, @dalance
Patch version: