Geoffroy Couprie
324125f23e
relax the flat_map argument from Fn to FnMut
2021-11-03 23:03:33 +01:00
Geoffroy Couprie
f8633f9a8f
introduce a workaround for float parsing
...
this will afford some time until we get a proper fix with minimal
lexical for floats that are to large
2021-11-03 22:47:58 +01:00
homersimpsons
02433c2c98
Readme: Fix coverage badge
2021-10-25 20:59:45 +02:00
wuaoxiang
4a2f9af9ed
Add JsonValue::Null to json example
2021-10-23 22:34:38 +02:00
wuaoxiang
337c218965
Fix typos
2021-10-23 22:34:38 +02:00
homersimpsons
0d65b54549
Remove blockbuf-arithmetic
test from Cargo.toml
2021-10-23 22:28:41 +02:00
homersimpsons
00f4085402
Remove dead code (tests/blockbuf-arithmetic.rs)
2021-10-23 22:28:41 +02:00
Luiz Carlos
96cd14b2c4
fix: fixed doc code blocks
...
Some code blocks inside the `sequence` module had no spacing between code blocks and lines above, making it fail to render as a valid block.
2021-10-23 22:26:44 +02:00
Ed Page
074fd29705
Fail CI on bad intradoc links
...
I'm looking at extending the docs and want to make sure I don't
introduce a bad link.
It looks like
- CI won't fail on bad intradoc links
- We can't get it to with the `cargo` action
So dropping down to the shell to make sure bad links error, instead of
warn.
2021-10-23 22:22:52 +02:00
Antoine PLASKOWSKI
7c090982ab
Replace ignore to compile_fail
2021-10-23 22:16:42 +02:00
Geoffroy Couprie
42102c589b
move benchmarks to a subcrate
...
this moves the jemallocator and criterion dependencies to that crate,
which will prevent further issues with MSRV in dependencies, and removes
75 dependencies from test builds
2021-10-23 10:56:08 +02:00
Antoine PLASKOWSKI
d15a2669a8
Remove jemalloc for test
2021-10-23 09:41:41 +02:00
Guillaume
0d373222b9
CI: Update tarpaulin and use Coveralls' action
2021-10-23 09:39:37 +02:00
Daniel Néri
db9d5f814c
Replace deprecated "use_std" memchr feature with "std"
...
The "use_std" feature is deprecated since memchr v2.3.0.
2021-10-21 23:19:28 +02:00
Guillaume
6f124bf0be
Add tests for bits/streaming::{take, tag}
2021-10-21 23:17:58 +02:00
Guillaume
b4d50017e2
Use []
for vec!
macro
2021-10-21 23:16:49 +02:00
Geoffroy Couprie
56a7a42346
point the docs to Parser::map and Parser::flat_map
2021-10-10 22:25:48 +02:00
Jihchi Lee
eb181568a4
Fix broken "take_while" link
2021-10-10 22:10:55 +02:00
Constantin Nickel
b5735d2e8b
ci: tune build jobs with caching and disable incremental compilation
2021-10-10 22:05:09 +02:00
Alex Hamilton
dfa55914dc
Implement Alt<I, O, E> for the 1-tuple type
...
This revision enables the use of the alt() combinator on a 1-tuple of
parsers. Notably, because only a single parser will need to see the
input, there is no Clone bound on this implementation, unlike with other
tuple sizes.
2021-09-25 17:08:07 +02:00
Alex Huszagh
c80828897f
Increment minimal-lexical version.
2021-09-25 16:35:41 +02:00
Drumato
8ab6827c2d
specify the syntax highlight to code snippet in error doc
2021-09-25 16:29:14 +02:00
Gungy2
e1cf43a6fc
Add pseudocode interpreter to the list of projects ( #1400 )
...
Co-authored-by: Geoffroy Couprie <geo.couprie@gmail.com>
2021-09-25 16:28:36 +02:00
Nipunn Koorapati
5ce4183ff7
Fix doc for fold_many_m_n (one of the args takes a lambda)
2021-09-25 16:25:56 +02:00
Michael Schubart
0b1343bc19
alt
takes tuple
...
Co-authored-by: Jihchi Lee <achi@987.tw>
2021-09-25 16:22:11 +02:00
Michael Schubart
07dd0510cc
Fix usage comment of alt() combinator
...
Looks like `|` is a leftover from the old macro-based API.
2021-09-25 16:22:11 +02:00
Constantin Nickel
6ecee46e4c
Re-enable the iterator
example
...
Apply the current code formatting
2021-09-25 16:21:31 +02:00
Constantin Nickel
9f40fbd9e6
Remove superfluous #[macro_use]
attributes
2021-09-25 16:20:58 +02:00
Constantin Nickel
b5c0e7dd14
Fix test warnings with std
feature not enabled
2021-09-25 16:19:41 +02:00
Constantin Nickel
847366f387
Fix clippy warnings
...
clippy::unnecessary_cast
2021-09-25 16:18:56 +02:00
Strytyp
babec7cc6c
Update README.md
...
Add Wasm parser.
2021-09-25 16:16:54 +02:00
clonejo
5b7535e590
Fix docs: misleading argument order (streaming::escaped_transform)
...
The docs example for streaming::escaped_transform is very misleading, as
it would transform backslash+newline to just n, not backslash+n to
newline, as most people would expect.
This is already correct in the docs for complete::escaped_transform and
the tests, this seems to be an oversight.
2021-09-25 16:15:05 +02:00
Nils
a6cd401274
Fix documention for double using f64 and float
2021-09-25 16:09:06 +02:00
Antoine PLASKOWSKI
615e6a441e
minimal-lexical now import with no default feature
2021-08-26 09:21:44 +02:00
Constantin Nickel
cff46ba829
Replace build status badge
2021-08-21 20:13:31 +02:00
Geoffroy Couprie
9678b061d3
v7.0.0
2021-08-21 13:03:47 +02:00
Geoffroy Couprie
6e93a3a319
remove link to FAQ
2021-08-21 13:03:32 +02:00
Geoffroy Couprie
e2d82eee33
fmt
2021-08-21 12:46:24 +02:00
Geoffroy Couprie
fb711cffa7
missing proptest for streaming number parsers
2021-08-21 12:24:31 +02:00
Geoffroy Couprie
3de831816c
remove mentions of macros in the documentation
2021-08-21 12:24:09 +02:00
Geoffroy Couprie
195d398520
update github actions
2021-08-21 12:17:41 +02:00
Geoffroy Couprie
9ccdc35752
remove .travis.yml
2021-08-21 12:16:25 +02:00
Geoffroy Couprie
a7a23d9dec
update the MSRV to 1.48
...
Debian 11.0 Bullseye was released on 2021-08-14, and it provides rustc
in version 1.48: https://packages.debian.org/search?keywords=rustc
While nom 7 can still build for Rust 1.41.1, the latest stable release
of Debian is enough as a support limit
2021-08-21 12:13:43 +02:00
Geoffroy Couprie
889aa0a75b
update the changelog
2021-08-21 12:02:47 +02:00
Geoffroy Couprie
5d50ca711b
performance fix for float parsing in &str
2021-08-21 11:31:46 +02:00
Geoffroy Couprie
e2a0dd52e0
v7.0.0-alpha3
2021-08-18 19:04:14 +02:00
Geoffroy Couprie
e6f17e2cba
fmt
2021-08-18 18:59:35 +02:00
Geoffroy Couprie
b57026bd03
fix streaming usage
2021-08-18 18:57:18 +02:00
Geoffroy Couprie
272de11b1c
fix performance regressions
2021-08-18 17:23:43 +02:00
Geoffroy Couprie
704cfed72a
current proptests for floats require the std feature
2021-08-18 17:16:32 +02:00