Breaking change:
- Migrate to 8.0
nom- Bump up MSRV to 1.65
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
DerefforLocatedSpan, returning the fragment - Optionally implement
StableDerefas well, if thestable-deref-traitfeature 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
extraproperty is now ignored when comparing LocatedSpan- Dependency on nom now uses with
default-features = false offset/line/fragmentare now private attributes of theLocatedSpanstructure, to fix an undefined behavior is they are modified. You now have to use thelocation_offset(),location_line(), andfragment()getters instead.LocatedSpanExis removed in favour of adding a generic type parameter toLocatedSpanwhich 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: