select nom features

This commit is contained in:
Edward Shen 2021-02-24 12:30:49 -05:00
parent 75a99679a2
commit 3094dfd2c0
Signed by: edward
GPG key ID: 19182661E818369F
2 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
nom = "6"
nom = { version = "6", default_features = false, features = ["std"] }
bstr = "0.2.15"
[dependencies.serde_crate]

View file

@ -1,5 +1,9 @@
#![forbid(unsafe_code)]
// Cargo.toml cannot have self-referential dependencies, so you can't just
// specify the actual serde crate when you define a feature called serde. We
// instead call the serde crate as serde_crate and then rename the crate to
// serde, to get around this in an intuitive manner.
#[cfg(feature = "serde")]
extern crate serde_crate as serde;