Add palette dependency behind "colors" feature flag

This commit is contained in:
Clark Moody 2020-03-31 12:11:37 -05:00
parent 0ff3cbf543
commit 63933e26d2
2 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,8 @@ debug = ["iced_winit/debug"]
tokio = ["iced_futures/tokio"]
# Enables `async-std` as the `executor::Default` on native platforms
async-std = ["iced_futures/async-std"]
# Enables advanced color conversion via `palette`
colors = ["iced_core/colors"]
[badges]
maintenance = { status = "actively-developed" }
@ -57,6 +59,7 @@ members = [
]
[dependencies]
iced_core = { version = "0.1", path = "core" }
iced_futures = { version = "0.1", path = "futures" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]

View File

@ -7,4 +7,11 @@ description = "The essential concepts of Iced"
license = "MIT"
repository = "https://github.com/hecrj/iced"
[features]
colors = ["palette"]
[dependencies]
[dependencies.palette]
version = "0.5.0"
optional = true