Commit Graph

2597 Commits

Author SHA1 Message Date
Geoffroy Couprie
8285735f93 as_slice is not available on array in 1.48 2022-03-14 23:30:39 +01:00
Fredrick Brennan
bb8ef79733 impl<'a> FindToken<char> for &'a [char]
Close Geal/nom#1282.
2022-03-14 22:54:19 +01:00
Christopher Hotchkiss
dae689efda Merged the allows into a single line as recommended by @Stargateur 2022-03-14 22:50:26 +01:00
Christopher Hotchkiss
bf575957ea Added two allows so clippy would pass a very complicated math formula for testing. 2022-03-14 22:50:26 +01:00
Constantin Nickel
eaddf7a52e Remove version check for i128 functions 2022-03-14 22:42:09 +01:00
LoganDark
481cd2dea6 Improve rust-style identifiers code
There is no reason to heap allocate for each individual character (or each group of characters?) when the allocated collection isn't even going to be used anyway
2022-03-14 22:32:55 +01:00
Marcel Müller
68929821c8 Clarify the return value of recognize_float_parts 2022-03-14 22:30:38 +01:00
Eric
5074124339 Update README.md 2022-03-14 22:26:32 +01:00
Eric
189a601b5f Update README.md 2022-03-14 22:26:32 +01:00
Roee Shapira
0a72abe23e Wrap the input parsers to the tuple sequence combinator in a tuple 2022-03-14 22:23:17 +01:00
Xiretza
addc306ba5 README: mention "MSRV" keyword for better discoverability
Currently, grepping the codebase for "MSRV" yields only a changelog
entry that doesn't point toward the actually relevant section in the
README.
2022-03-14 22:21:03 +01:00
Xiretza
c19f9392c8 Cargo.toml: specify minimum rust version
This field causes cargo to automatically verify that a recent enough
rustc version is being used. For cargo versions before 1.56, adding this
option creates a build warning - from [0]:

> The first version of Cargo that supports this field was released with Rust
> 1.56.0. In older releases, the field will be ignored, and Cargo will display
> a warning.

[0]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
2022-03-14 22:21:03 +01:00
Maximilian Roos
1819d7824c Small typo 2022-03-14 22:18:45 +01:00
Maxime
10f2a7dd50 fix typo in docs
nom no longer relies on macros, but an exclamation mark was left over
2022-03-14 22:16:25 +01:00
Geoffroy Couprie
3ef4805b93 Merge branch 'pxeger-main' 2022-03-14 22:12:52 +01:00
Patrick Reader
d83a501986 fix more dead links 2022-03-14 22:12:15 +01:00
pxeger
2c82abdfd3 update links in PULL_REQUEST_TEMPLATE.md (master -> main) 2022-03-14 22:12:15 +01:00
pxeger
7f2531df64 update links pointing to master -> main 2022-03-14 22:12:11 +01:00
Geoffroy Couprie
c3157a8706 Update src/sequence/mod.rs 2022-03-14 22:00:52 +01:00
Doehyun Baek
e481c7743f Add docs of number limitation of tuple 2022-03-14 22:00:52 +01:00
Tamo
cbd6777663 Add Meilisearch to the list of project using nom
Since this PR in milli https://github.com/meilisearch/milli/pull/400 and its integration in [Meilisearch v0.24.0](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.24.0) we use nom to parse our [filter](https://docs.meilisearch.com/reference/features/filtering_and_faceted_search.html#filtering-and-faceted-search)
2022-03-14 21:55:08 +01:00
SphinxKnight
3e32bb8411 Rewrite URL to complete fcd27b5 2022-03-14 21:54:09 +01:00
SphinxKnight
16963d82fc Typofix - dead link
I was just browsing out of curiosity and this link failed due to an apparent refactoring.
Let me know if something else is needed here :)
2022-03-14 21:54:09 +01:00
Thomas
6580debbfe Doc example for take 2022-03-14 21:51:42 +01:00
Geoffroy Couprie
e99f9e0e7e remove dead code 2021-12-16 22:16:57 +01:00
Thomas
d482ac3aff Add example for integer parsing to digit1 2021-12-11 18:21:35 +01:00
Geoffroy Couprie
b6f79c4d37 v7.1.0 2021-11-04 22:10:06 +01:00
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