Skip to content

Commit 356024e

Browse files
committed
Switch back to upstream 5.0 nom_locate crate (#14)
1 parent 750de24 commit 356024e

File tree

6 files changed

+5
-357
lines changed

6 files changed

+5
-357
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ All user visible changes to `cucumber-expressions` crate will be documented in t
1414
### BC Breaks
1515

1616
- Bumped up [MSRV] to 1.81 because for `#[expect]` attribute usage. ([e1bb9266])
17-
- Upgraded [`nom`] to 8.0 version. ([#14])
17+
- Upgraded [`nom`] to 8.0 version and [`nom_locate`] to 5.0 version. ([#14], [todo])
1818

1919
[#14]: /../../pull/14
2020
[e1bb9266]: /../../commit/e1bb92668617432948ab0faa32232b67d6c530e7
21+
[todo]: /../../commit/todo
2122

2223

2324

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ into-regex = ["dep:either", "dep:regex", "dep:regex-syntax"]
2727

2828
[dependencies]
2929
derive_more = { version = "0.99.17", features = ["as_ref", "deref", "deref_mut", "display", "error", "from", "into"], default-features = false }
30-
memchr = "2.3"
3130
nom = "8.0"
31+
nom_locate = "5.0"
3232

3333
# "into-regex" feature dependencies
3434
either = { version = "1.6", optional = true }

src/ast.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
1919
use derive_more::{AsRef, Deref, DerefMut};
2020
use nom::{error::ErrorKind, Err, Input};
21+
use nom_locate::LocatedSpan;
2122

22-
use crate::{parse, vendor::nom_locate::LocatedSpan};
23+
use crate::parse;
2324

2425
/// [`str`] along with its location information in the original input.
2526
pub type Spanned<'s> = LocatedSpan<&'s str>;

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ mod combinator;
173173
#[cfg(feature = "into-regex")]
174174
pub mod expand;
175175
pub mod parse;
176-
pub mod vendor;
177176

178177
#[doc(inline)]
179178
pub use self::ast::{

src/vendor/mod.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/vendor/nom_locate.rs

Lines changed: 0 additions & 340 deletions
This file was deleted.

0 commit comments

Comments
 (0)