mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-29 22:11:34 +00:00
fix(no_std): propagate std
feature flag to dependencies (#1838)
Disables `std` feature flags in dependencies and only enables them with `ratatui` and `ratatui-core`'s `std` feature flag. This partially fixes the issue of still depending on `std`, when `std` feature flag is disabled.
This commit is contained in:
parent
00da8c6203
commit
79d5165cae
@ -34,7 +34,7 @@ document-features = "0.2.11"
|
||||
hashbrown = "0.15.3"
|
||||
indoc = "2.0.6"
|
||||
instability = "0.3.7"
|
||||
itertools = "0.13.0"
|
||||
itertools = { version = "0.13.0", default-features = false, features = ["use_alloc"] }
|
||||
pretty_assertions = "1.4.1"
|
||||
ratatui = { path = "ratatui", version = "0.30.0-alpha.2" }
|
||||
ratatui-core = { path = "ratatui-core", version = "0.1.0-alpha.3" }
|
||||
@ -46,7 +46,7 @@ ratatui-widgets = { path = "ratatui-widgets", version = "0.3.0-alpha.2" }
|
||||
rstest = "0.25.0"
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
serde_json = "1.0.140"
|
||||
strum = { version = "0.26.3", features = ["derive"] }
|
||||
strum = { version = "0.26.3", default-features = false, features = ["derive"] }
|
||||
termion = "4.0.5"
|
||||
termwiz = { version = "0.23.3" }
|
||||
unicode-segmentation = "1.12.0"
|
||||
|
@ -25,7 +25,14 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
default = []
|
||||
|
||||
## enables std
|
||||
std = []
|
||||
std = [
|
||||
"itertools/use_std",
|
||||
"thiserror/std",
|
||||
"kasuari/std",
|
||||
"compact_str/std",
|
||||
"unicode-truncate/std",
|
||||
"strum/std",
|
||||
]
|
||||
|
||||
## enables layout cache
|
||||
layout-cache = ["std"]
|
||||
@ -51,19 +58,19 @@ serde = ["dep:serde", "bitflags/serde", "compact_str/serde"]
|
||||
[dependencies]
|
||||
anstyle = { version = "1", optional = true }
|
||||
bitflags = "2.3"
|
||||
compact_str = "0.9.0"
|
||||
compact_str = { version = "0.9.0", default-features = false }
|
||||
document-features = { workspace = true, optional = true }
|
||||
hashbrown = "0.15.2"
|
||||
indoc.workspace = true
|
||||
itertools.workspace = true
|
||||
kasuari = "0.4.6"
|
||||
kasuari = { version = "0.4.6", default-features = false }
|
||||
lru = "0.12.0"
|
||||
palette = { version = "0.7.6", optional = true }
|
||||
serde = { workspace = true, optional = true }
|
||||
strum.workspace = true
|
||||
thiserror = "2"
|
||||
thiserror = { version = "2", default-features = false }
|
||||
unicode-segmentation.workspace = true
|
||||
unicode-truncate = "2"
|
||||
unicode-truncate = { version = "2", default-features = false }
|
||||
unicode-width.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
|
Loading…
x
Reference in New Issue
Block a user