Skip to content

Commit 541540c

Browse files
committed
Add color-parsing feature instead
1 parent 881b628 commit 541540c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

internal/common/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ path = "lib.rs"
1818

1919
[features]
2020
default = []
21-
std = []
22-
shared-fontique = ["dep:fontique", "dep:ttf-parser", "std"]
21+
shared-fontique = ["dep:fontique", "dep:ttf-parser"]
22+
color-parsing = []
2323

2424
[dependencies]
2525
ttf-parser = { workspace = true, optional = true }

internal/common/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
#![doc = include_str!("README.md")]
55
#![doc(html_logo_url = "https://slint.dev/logo/slint-logo-square-light.svg")]
6-
#![cfg_attr(not(feature = "std"), no_std)]
6+
#![cfg_attr(not(any(feature = "shared-fontique", feature = "color-parsing")), no_std)]
77

88
pub mod builtin_structs;
9-
#[cfg(feature = "std")]
9+
#[cfg(feature = "color-parsing")]
1010
pub mod color_parsing;
1111
pub mod enums;
1212
pub mod key_codes;

internal/compiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ experimental-library-module = []
4141
default = []
4242

4343
[dependencies]
44-
i-slint-common = { workspace = true, features = ["default", "std"] }
44+
i-slint-common = { workspace = true, features = ["default", "color-parsing"] }
4545

4646
num_enum = "0.7"
4747
strum = { workspace = true }

0 commit comments

Comments
 (0)