Skip to content

Commit c915992

Browse files
committed
fix: correctly configure 'serde' features of dependencies (#33).
Due to surprising an to me still quite unclear behaviour `cargo` will turn on the `serde` features in the `hex` and `smartstring` dependencies when building it locally from a repository clone, but won't do it when building the crates-io version of the crate after adding it as dependency. This fixes the issue by correctly configuring it the `serde` feature.
1 parent 8bfd04d commit c915992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ http-reqwest = ["git-repository/blocking-http-transport-reqwest-rust-tls"]
3737
[dependencies]
3838
git-repository = { version = "0.29.0", default-features = false, features = ["max-performance-safe", "blocking-network-client"] }
3939
serde = { version = "1", features = ["std", "derive"] }
40-
hex = "0.4.3"
41-
smartstring = "1.0.1"
40+
hex = { version = "0.4.3", features = ["serde"] }
41+
smartstring = { version = "1.0.1", features = ["serde"] }
4242
serde_json = "1"
4343
bstr = "1.0.1"
4444
thiserror = "1.0.32"

0 commit comments

Comments
 (0)