summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-24 14:38:40 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-24 14:39:43 +0200
commita975754ab0983b9dc12bc0d0fc63049ee812d1c5 (patch)
tree38e2dea1ba5c8033d26cfb283e13cc696411c7c7 /core
parent0a93be78b8405f57ea020c5ade8ebf52ce10a461 (diff)
downloadiced-a975754ab0983b9dc12bc0d0fc63049ee812d1c5.tar.gz
iced-a975754ab0983b9dc12bc0d0fc63049ee812d1c5.tar.bz2
iced-a975754ab0983b9dc12bc0d0fc63049ee812d1c5.zip
Remove `stretch` optional dependency in `core`
Diffstat (limited to 'core')
-rw-r--r--core/Cargo.toml5
-rw-r--r--core/src/align.rs26
-rw-r--r--core/src/justify.rs17
3 files changed, 0 insertions, 48 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 40a8bcfb..a244bcba 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -6,8 +6,3 @@ edition = "2018"
description = "The essential concepts of Iced"
license = "MIT"
repository = "https://github.com/hecrj/iced"
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
-[dependencies]
-stretch = { version = "0.2", optional = true }
diff --git a/core/src/align.rs b/core/src/align.rs
index 5876e0f8..5dbd658d 100644
--- a/core/src/align.rs
+++ b/core/src/align.rs
@@ -19,29 +19,3 @@ pub enum Align {
/// Stretch over the cross axis.
Stretch,
}
-
-#[cfg(feature = "stretch")]
-#[doc(hidden)]
-impl From<Align> for stretch::style::AlignItems {
- fn from(align: Align) -> Self {
- match align {
- Align::Start => stretch::style::AlignItems::FlexStart,
- Align::Center => stretch::style::AlignItems::Center,
- Align::End => stretch::style::AlignItems::FlexEnd,
- Align::Stretch => stretch::style::AlignItems::Stretch,
- }
- }
-}
-
-#[cfg(feature = "stretch")]
-#[doc(hidden)]
-impl From<Align> for stretch::style::AlignSelf {
- fn from(align: Align) -> Self {
- match align {
- Align::Start => stretch::style::AlignSelf::FlexStart,
- Align::Center => stretch::style::AlignSelf::Center,
- Align::End => stretch::style::AlignSelf::FlexEnd,
- Align::Stretch => stretch::style::AlignSelf::Stretch,
- }
- }
-}
diff --git a/core/src/justify.rs b/core/src/justify.rs
index 878573b0..53aa7319 100644
--- a/core/src/justify.rs
+++ b/core/src/justify.rs
@@ -25,20 +25,3 @@ pub enum Justify {
/// Place items with evenly distributed space.
SpaceEvenly,
}
-
-#[cfg(feature = "stretch")]
-#[doc(hidden)]
-impl From<Justify> for stretch::style::JustifyContent {
- fn from(justify: Justify) -> Self {
- match justify {
- Justify::Start => stretch::style::JustifyContent::FlexStart,
- Justify::Center => stretch::style::JustifyContent::Center,
- Justify::End => stretch::style::JustifyContent::FlexEnd,
- Justify::SpaceBetween => {
- stretch::style::JustifyContent::SpaceBetween
- }
- Justify::SpaceAround => stretch::style::JustifyContent::SpaceAround,
- Justify::SpaceEvenly => stretch::style::JustifyContent::SpaceEvenly,
- }
- }
-}