From 81eea615836beda2c34cebefd396af5c539f474c Mon Sep 17 00:00:00 2001 From: C191239 Date: Wed, 13 Mar 2024 23:26:34 +0800 Subject: [PATCH] add edcode feat in toml --- crates/core/item/Cargo.toml | 2 ++ crates/core/text/Cargo.toml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/core/item/Cargo.toml b/crates/core/item/Cargo.toml index 1b14910..96e77a3 100644 --- a/crates/core/item/Cargo.toml +++ b/crates/core/item/Cargo.toml @@ -16,10 +16,12 @@ rimecraft-global-cx = { path = "../global-cx" } rimecraft-registry = { path = "../../util/registry" } rimecraft-fmt = { path = "../../util/fmt" } serde = { version = "1.0", optional = true } +rimecraft-edcode = { path = "../../util/edcode", optional = true } [features] default = ["serde"] serde = ["dep:serde", "rimecraft-registry/serde"] +edcode = ["dep:rimecraft-edcode"] [lints] workspace = true diff --git a/crates/core/text/Cargo.toml b/crates/core/text/Cargo.toml index af34fe7..a4ebaf0 100644 --- a/crates/core/text/Cargo.toml +++ b/crates/core/text/Cargo.toml @@ -16,11 +16,13 @@ rimecraft-global-cx = { path = "../global-cx" } rgb = "0.8" rimecraft-fmt = { path = "../../util/fmt" } serde = { version = "1.0", features = ["derive"], optional = true } +rimecraft-edcode = { path = "../../util/edcode", optional = true } [features] default = ["macros"] serde = ["dep:serde"] macros = [] +edcode = ["dep:rimecraft-edcode"] [lints] workspace = true