Skip to content

Commit

Permalink
add edcode feat in toml
Browse files Browse the repository at this point in the history
  • Loading branch information
0123456789-jpg committed Mar 13, 2024
1 parent 9860468 commit 81eea61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/core/item/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions crates/core/text/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 81eea61

Please sign in to comment.