Skip to content

Commit

Permalink
Cargo.toml: Specify optional dependencies with dep: prefix
Browse files Browse the repository at this point in the history
Although specifying optional dependencies without the dep: prefix works fine for
cargo-level packaging, some OS package managers interpret these as features
rather than optional dependencies. As such, explicitly stating that they are
optional dependencies will make the packaging process easier.

Signed-off-by: Tyler Fanelli <[email protected]>
  • Loading branch information
tylerfanelli committed Dec 3, 2024
1 parent e713ed5 commit 2971671
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ rustdoc-args = ["--cfg", "docsrs"]

[features]
default = ["std"]
bigint = ["num-bigint"]
bits = ["bitvec"]
datetime = ["time"]
debug = ["colored"]
serialize = ["cookie-factory"]
bigint = ["dep:num-bigint"]
bits = ["dep:bitvec"]
datetime = ["dep:time"]
debug = ["dep:colored"]
serialize = ["dep:cookie-factory"]
std = []
trace = ["debug"]

Expand Down

0 comments on commit 2971671

Please sign in to comment.