summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRain <rain@sunshowers.io>2023-09-24 18:58:36 -0700
committerRain <rain@sunshowers.io>2023-09-25 17:41:20 -0700
commit877d64afb6e7cdc6a0ad461a3577365caf010deb (patch)
treee9888b74e14f686b3eb1db7951dd07bceb0dd8ce
parentfa02f205b285ca2f2e5aefd4e19b3d2a1e21a7c8 (diff)
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>
-rw-r--r--Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 3626737..294956c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,7 @@ yaml = ["yaml-rust"]
ini = ["rust-ini"]
json5 = ["json5_rs", "serde/derive"]
convert-case = ["convert_case"]
-preserve_order = ["indexmap", "toml/preserve_order", "serde_json/preserve_order", "ron/indexmap"]
+preserve_order = ["indexmap", "toml?/preserve_order", "serde_json?/preserve_order", "ron?/indexmap"]
async = ["async-trait"]
[dependencies]