Commit Graph

2625 Commits

Author SHA1 Message Date
openharmony_ci
6855e09e5d
!2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:10:48 +00:00
fangting
6b11c259c9 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:15:11 +08:00
openharmony_ci
ea45390c8b
!1 [nom]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:34:39 +00:00
lubinglun
1c00ac288b Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:26:33 +08:00
Geoffroy Couprie
869f8972a4 v7.1.3 2023-01-15 22:05:17 +01:00
Geoffroy Couprie
a534b39078 fix other uses of MAX_INITIAL_CAPACITY_BYTES
fix  panic when the output type is zero sized
2023-01-15 21:59:46 +01:00
Michael Bryant
ee7ad17086 avoid panic when counting zero-sized outputs in count() (#1618)
* avoid panic when counting zero-sized outputs in count()

* run cargo fmt
2023-01-15 21:59:46 +01:00
Geoffroy Couprie
6be62d30d7
v7.1.2 (#1605) 2023-01-01 18:31:27 +01:00
Will_i_code
6860641f1b
1533 implement bool function for bits (#1534)
* Implement function `bool` for `nom::bits::complete`

* Implement function `bool` for `nom::bits::streaming`

Co-authored-by: William Calliari <william.calliari@gmail.com>
2022-12-30 18:03:41 +01:00
Wolf Thomsen
6e45c5d1f3
Remove duplicated section from error_management.md (#1529)
* Remove duplicated section from error_management.md

The section explaining the three different error types was duplicated (with minimal changes between the two sections). This (small) PR removes the redundancy.

* Update doc/error_management.md

Co-authored-by: Geoffroy Couprie <geo.couprie@gmail.com>
2022-12-30 18:01:29 +01:00
C. K. Young
3c5e08cde0
impl ErrorConvert<()> for () (#1583)
Co-authored-by: Geoffroy Couprie <contact@geoffroycouprie.com>
2022-12-30 17:49:17 +01:00
Geoffroy Couprie
9c357edae7
Move the succ! macro to its own file (#1598)
Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:30:40 +01:00
Geoffroy Couprie
9cff115667
Ensure all examples compile (#1604)
* docs: Remove unused example

* docs: Ensure all examples compile

Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:29:22 +01:00
Geoffroy Couprie
b66ff43eff
fix(bits): Accept Parser, not parser-like functions (#1599)
Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:28:21 +01:00
Geoffroy Couprie
326344a821
Clarify role of 'cut' (#1603)
* Clarify role of 'cut'

* update phrasing

Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:27:47 +01:00
Geoffroy Couprie
0884bf886a
Remove hidden map! and call! macros (#1601)
They are not needed anymore to implement some combinators

Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:20:29 +01:00
Geoffroy Couprie
fadde7cb0d
Ensure prop tests treat inf/nan the same (#1600)
Co-authored-by: Ed Page <eopage@gmail.com>
2022-12-30 16:18:56 +01:00
John Kugelman
400331efcb
Fix clamped capacity to be divided by element size (#1549)
* Fix clamped capacity to be divided by element size

- Fixes https://github.com/Geal/nom/issues/1459#issuecomment-1244461213
- Also change `clamp` to `min` so this works on Rust 2018 edition.

* Update src/multi/mod.rs

Co-authored-by: Geoffroy Couprie <geo.couprie@gmail.com>
Co-authored-by: Geoffroy Couprie <contact@geoffroycouprie.com>
2022-12-28 22:25:37 +01:00
Geoffroy Couprie
ad63809709
deactivate failing test (#1596) 2022-12-28 22:14:26 +01:00
Geoffroy Couprie
f16efaf5fb add a CODEOWNERS file 2022-12-28 21:50:55 +01:00
puzzlewolf
8f48120d5d doc: fix typo 2022-12-28 15:31:04 +01:00
barower
353f37e0f6 Update making_a_new_parser_from_scratch.md
When trying `dbg_dmp` snippet, I noticed it does not compile. This change updates this snippet so that it matches https://docs.rs/nom/latest/nom/error/fn.dbg_dmp.html
2022-12-28 15:24:46 +01:00
John Kugelman
3645656644 Clamp Vec::with_capacity to 64KiB to avoid OOM 2022-09-12 21:36:46 +02:00
Axel Viala
b4aeb3b803 Fix unecessary parentheses around match arm expression
warn observed with rustc 1.65.0-nightly (40336865f 2022-08-15).
2022-09-12 21:30:48 +02:00
LoganDark
761ab0a24f Implement nom::sequence::Tuple for () (Unit) 2022-05-21 16:40:19 +02:00
Carter
1a686f5180 feat(readme): add Wordle result parser to list 2022-05-21 16:12:03 +02:00
francois joubert
eb148c1c90 Add a table of content to the readme file. 2022-05-21 16:10:56 +02:00
Geoffroy Couprie
294ffb3d9e v7.1.1 2022-03-14 23:34:12 +01:00
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