From 2173cc3c9615b9c325c5cf31d8b00303f2eccc68 Mon Sep 17 00:00:00 2001 From: Isaac Hung <83223650+Nughm3@users.noreply.github.com> Date: Tue, 13 Jun 2023 02:02:20 +0800 Subject: [PATCH] Feature gate `triomphe/serde` behind `cstree/serialize` (#58) --- cstree/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cstree/Cargo.toml b/cstree/Cargo.toml index 158a323..f23083d 100644 --- a/cstree/Cargo.toml +++ b/cstree/Cargo.toml @@ -17,7 +17,7 @@ fxhash = "0.2.1" parking_lot = "0.12.1" # Arc -triomphe = "0.1.7" +triomphe = { version = "0.1.7", default-features = false, features = ["stable_deref_trait", "std"] } sptr = "0.3.2" # Default Interner @@ -61,7 +61,7 @@ default = [] # Derive macro for `Syntax` derive = ["dep:cstree_derive"] # Implementations of `serde::{De,}Serialize` for CSTrees. -serialize = ["serde", "lasso?/serialize"] +serialize = ["serde", "lasso?/serialize", "triomphe/serde"] # Interoperability with the `lasso` interning crate. # When enabled, `cstree`'s default interners will use `lasso` internally, too. lasso_compat = ["lasso"]