From b97fd54968fc347e8c642fcb3b25c658194fd674 Mon Sep 17 00:00:00 2001 From: AudaciousAxiom <179637270+AudaciousAxiom@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:30:30 +0000 Subject: [PATCH] toml: disable the unused `display` Cargo feature (#59) The `display` Cargo feature of the `toml` dependency is only used for tests, so we disable it to reduce the effective size for users, and enable it only for tests. For reference, the default features of `toml` are `display` and `parse`. --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c516a84..09cbc8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,11 +18,15 @@ path = "src/lib.rs" [dependencies] serde = { version = "1.0.114", features = ["derive"] } thiserror = "1.0.49" -toml = { version = "0.8", features = ["preserve_order"] } +toml = { version = "0.8", default-features = false, features = [ + "parse", + "preserve_order", +] } [dev-dependencies] insta = "1.39.0" tempfile = "3.10.1" +toml = { version = "0.8", default-features = false, features = ["display"] } [package.metadata.release] pre-release-hook = ["git", "cliff", "-o", "--tag", "{{version}}"]