Skip to content

Commit 891cd97

Browse files
committed
perf: Build less when TOML is needed
1 parent e3ab957 commit 891cd97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@ json5 = ["json5_rs", "serde/derive"]
119119
convert-case = ["convert_case"]
120120
preserve_order = ["indexmap", "toml?/preserve_order", "serde_json?/preserve_order", "ron?/indexmap"]
121121
async = ["async-trait"]
122+
toml = ["dep:toml"]
122123

123124
[dependencies]
124125
serde = "1.0"
125126

126127
async-trait = { version = "0.1", optional = true }
127-
toml = { version = "0.8", optional = true }
128+
toml = { version = "0.8", optional = true, default-features = false, features = ["parse"] }
128129
serde_json = { version = "1.0", optional = true }
129130
yaml-rust2 = { version = "0.9", optional = true }
130131
rust-ini = { version = "0.21", optional = true }

0 commit comments

Comments
 (0)