diff options
author | 2020-04-24 15:20:00 -0500 | |
---|---|---|
committer | 2020-04-24 15:20:00 -0500 | |
commit | 27fadad3246d555f52b991230a0352353d6700b4 (patch) | |
tree | be94c88b9f4a8dea24e9a1b1598fc81c6c57c3d4 | |
parent | 4b90241ea1d2139464587ce8475aeebbf283abc7 (diff) | |
download | iced-27fadad3246d555f52b991230a0352353d6700b4.tar.gz iced-27fadad3246d555f52b991230a0352353d6700b4.tar.bz2 iced-27fadad3246d555f52b991230a0352353d6700b4.zip |
Do not re-export Palette from iced_core
-rw-r--r-- | core/src/lib.rs | 3 | ||||
-rw-r--r-- | examples/color_palette/Cargo.toml | 4 | ||||
-rw-r--r-- | examples/color_palette/src/main.rs | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs index ca6013da..c2887a0b 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -35,6 +35,3 @@ pub use point::Point; pub use rectangle::Rectangle; pub use size::Size; pub use vector::Vector; - -#[cfg(feature = "palette")] -pub use palette; diff --git a/examples/color_palette/Cargo.toml b/examples/color_palette/Cargo.toml index ad7a0114..61c9f6b2 100644 --- a/examples/color_palette/Cargo.toml +++ b/examples/color_palette/Cargo.toml @@ -5,10 +5,8 @@ authors = ["Clark Moody <clark@clarkmoody.com>"] edition = "2018" publish = false -[features] -palette = [] - [dependencies] iced = { path = "../..", features = ["canvas", "palette"] } iced_core = { path = "../../core" } iced_native = { path = "../../native" } +palette = "0.5.0" diff --git a/examples/color_palette/src/main.rs b/examples/color_palette/src/main.rs index b80db299..576a0e64 100644 --- a/examples/color_palette/src/main.rs +++ b/examples/color_palette/src/main.rs @@ -2,7 +2,7 @@ use iced::{ canvas, slider, text_input, Canvas, Color, Column, Element, Length, Point, Row, Sandbox, Settings, Slider, Text, TextInput, }; -use iced_core::palette::{self, Limited}; +use palette::{self, Limited}; pub fn main() { ColorPalette::run(Settings { |