From 891cd97c6cb42b5cce0b0372f59f194af7b2f214 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 20 Dec 2024 10:25:23 -0600 Subject: [PATCH] perf: Build less when TOML is needed --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 86caa274..d9bfd022 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -119,12 +119,13 @@ json5 = ["json5_rs", "serde/derive"] convert-case = ["convert_case"] preserve_order = ["indexmap", "toml?/preserve_order", "serde_json?/preserve_order", "ron?/indexmap"] async = ["async-trait"] +toml = ["dep:toml"] [dependencies] serde = "1.0" async-trait = { version = "0.1", optional = true } -toml = { version = "0.8", optional = true } +toml = { version = "0.8", optional = true, default-features = false, features = ["parse"] } serde_json = { version = "1.0", optional = true } yaml-rust2 = { version = "0.9", optional = true } rust-ini = { version = "0.21", optional = true }