select nom features
This commit is contained in:
parent
75a99679a2
commit
3094dfd2c0
2 changed files with 5 additions and 1 deletions
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Reference in a new issue