Create a json-integration feature flag and disable building the CLI program without it.
This commit is contained in:
parent
7602599cf2
commit
aa3ed99fca
@ -4,6 +4,10 @@ version = "0.1.0"
|
|||||||
authors = ["Tom Alexander <tom@fizz.buzz>"]
|
authors = ["Tom Alexander <tom@fizz.buzz>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = []
|
||||||
|
json-integration = []
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "duster"
|
name = "duster"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
@ -11,6 +15,7 @@ path = "src/lib.rs"
|
|||||||
[[bin]]
|
[[bin]]
|
||||||
name = "duster-cli"
|
name = "duster-cli"
|
||||||
path = "src/bin.rs"
|
path = "src/bin.rs"
|
||||||
|
required-features = ["json-integration"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nom = { git = "https://github.com/tomalexander/nom.git", branch = "take_until_parser_matches" }
|
nom = { git = "https://github.com/tomalexander/nom.git", branch = "take_until_parser_matches" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user