Skip to content

Commit

Permalink
toml: disable the unused display Cargo feature (#59)
Browse files Browse the repository at this point in the history
The `display` Cargo feature of the `toml` dependency is only used for
tests, so we disable it to reduce the effective size for users, and
enable it only for tests.
For reference, the default features of `toml` are `display` and `parse`.
  • Loading branch information
AudaciousAxiom authored Nov 26, 2024
1 parent c20080d commit b97fd54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ path = "src/lib.rs"
[dependencies]
serde = { version = "1.0.114", features = ["derive"] }
thiserror = "1.0.49"
toml = { version = "0.8", features = ["preserve_order"] }
toml = { version = "0.8", default-features = false, features = [
"parse",
"preserve_order",
] }

[dev-dependencies]
insta = "1.39.0"
tempfile = "3.10.1"
toml = { version = "0.8", default-features = false, features = ["display"] }

[package.metadata.release]
pre-release-hook = ["git", "cliff", "-o", "--tag", "{{version}}"]

0 comments on commit b97fd54

Please sign in to comment.