Skip to content

Commit 877d64a

Browse files
committed
Use weak features for preserve_order
Currently, `preserve_order` causes the toml, serde_json and ron dependencies to be enabled. This can be avoided by using cargo's support for [weak features]. [weak features]: https://rust-lang.github.io/rfcs/3143-cargo-weak-namespaced-features.html Weak features were stabilized in Rust 1.60 so there are no MSRV concerns. I think this probably is a breaking change since it's possible some downstream users weren't enabling support explicitly. Signed-off-by: Rain <rain@sunshowers.io>
1 parent fa02f20 commit 877d64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ yaml = ["yaml-rust"]
2121
ini = ["rust-ini"]
2222
json5 = ["json5_rs", "serde/derive"]
2323
convert-case = ["convert_case"]
24-
preserve_order = ["indexmap", "toml/preserve_order", "serde_json/preserve_order", "ron/indexmap"]
24+
preserve_order = ["indexmap", "toml?/preserve_order", "serde_json?/preserve_order", "ron?/indexmap"]
2525
async = ["async-trait"]
2626

2727
[dependencies]

0 commit comments

Comments
 (0)