Skip to content

Commit

Permalink
cargo: put bin dependencies in a feature
Browse files Browse the repository at this point in the history
no point in requiring csv when using diameter as a library

there is seemingly not a better way to do this yet:
rust-lang/cargo#1982
  • Loading branch information
xfnw committed Jun 29, 2024
1 parent bbdc8fc commit f10f42e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ version = "0.2.1"
edition = "2021"

[dependencies]
csv = "1.2.2"
csv = { version = "1.2.2", optional = true }

[features]
bin = ["dep:csv"]

[[bin]]
name = "diameter"
required-features = ["bin"]

0 comments on commit f10f42e

Please sign in to comment.