From 0858a0afb08e7d52545c69e857128fc9c5f85ea5 Mon Sep 17 00:00:00 2001 From: kyren Date: Wed, 28 Jun 2023 17:26:01 -0400 Subject: [PATCH] no_std compatible serde support Depend on serde using `default_features = false`, which makes the dependency no_std compatible. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1f03626..a2e40fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ description = "HashMap-like containers that hold their key-value pairs in a user repository = "https://github.com/kyren/hashlink" documentation = "https://docs.rs/hashlink" readme = "README.md" -keywords = ["data-structures"] +keywords = ["data-structures", "no_std"] license = "MIT OR Apache-2.0" [badges] @@ -18,7 +18,7 @@ serde_impl = ["serde"] [dependencies] hashbrown = "0.14" -serde = { version = "1.0", optional = true } +serde = { version = "1.0", default_features = false, optional = true } [dev-dependencies] serde_test = "1.0"