summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml35
-rw-r--r--core/Cargo.toml25
-rw-r--r--core/src/element.rs (renamed from src/element.rs)0
-rw-r--r--core/src/event.rs (renamed from src/event.rs)0
-rw-r--r--core/src/hasher.rs (renamed from src/hasher.rs)0
-rw-r--r--core/src/input.rs (renamed from src/input.rs)0
-rw-r--r--core/src/input/button_state.rs (renamed from src/input/button_state.rs)0
-rw-r--r--core/src/input/keyboard.rs (renamed from src/input/keyboard.rs)0
-rw-r--r--core/src/input/keyboard/event.rs (renamed from src/input/keyboard/event.rs)0
-rw-r--r--core/src/input/keyboard/key_code.rs (renamed from src/input/keyboard/key_code.rs)0
-rw-r--r--core/src/input/mouse.rs (renamed from src/input/mouse.rs)0
-rw-r--r--core/src/input/mouse/button.rs (renamed from src/input/mouse/button.rs)0
-rw-r--r--core/src/input/mouse/event.rs (renamed from src/input/mouse/event.rs)0
-rw-r--r--core/src/layout.rs (renamed from src/layout.rs)0
-rw-r--r--core/src/lib.rs (renamed from src/lib.rs)0
-rw-r--r--core/src/mouse_cursor.rs (renamed from src/mouse_cursor.rs)0
-rw-r--r--core/src/node.rs (renamed from src/node.rs)0
-rw-r--r--core/src/point.rs (renamed from src/point.rs)0
-rw-r--r--core/src/rectangle.rs (renamed from src/rectangle.rs)0
-rw-r--r--core/src/renderer.rs (renamed from src/renderer.rs)0
-rw-r--r--core/src/style.rs (renamed from src/style.rs)0
-rw-r--r--core/src/user_interface.rs (renamed from src/user_interface.rs)0
-rw-r--r--core/src/vector.rs (renamed from src/vector.rs)0
-rw-r--r--core/src/widget.rs (renamed from src/widget.rs)0
-rw-r--r--core/src/widget/button.rs (renamed from src/widget/button.rs)0
-rw-r--r--core/src/widget/checkbox.rs (renamed from src/widget/checkbox.rs)0
-rw-r--r--core/src/widget/column.rs (renamed from src/widget/column.rs)0
-rw-r--r--core/src/widget/image.rs (renamed from src/widget/image.rs)0
-rw-r--r--core/src/widget/panel.rs (renamed from src/widget/panel.rs)0
-rw-r--r--core/src/widget/progress_bar.rs (renamed from src/widget/progress_bar.rs)0
-rw-r--r--core/src/widget/radio.rs (renamed from src/widget/radio.rs)0
-rw-r--r--core/src/widget/row.rs (renamed from src/widget/row.rs)0
-rw-r--r--core/src/widget/slider.rs (renamed from src/widget/slider.rs)0
-rw-r--r--core/src/widget/text.rs (renamed from src/widget/text.rs)0
-rw-r--r--examples/Cargo.toml17
-rw-r--r--examples/tour/main.rs2
36 files changed, 48 insertions, 31 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 1e806b22..43556cbe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,30 +1,5 @@
-[package]
-name = "iced"
-version = "0.1.0-alpha"
-authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
-edition = "2018"
-description = "A GUI runtime, heavily inspired by Elm."
-license = "MIT"
-repository = "https://github.com/hecrj/iced"
-documentation = "https://docs.rs/iced"
-readme = "README.md"
-keywords = ["gui", "ui", "graphics", "interface", "widgets"]
-categories = ["gui"]
-
-[badges]
-maintenance = { status = "actively-developed" }
-
-[package.metadata.docs.rs]
-features = ["winit"]
-
-[dependencies]
-stretch = "0.2"
-twox-hash = "1.5"
-
-# Enable to obtain conversion traits
-winit = { version = "0.20.0-alpha3", optional = true }
-
-[dev-dependencies]
-# A personal `ggez` fork that introduces a `FontCache` type to measure text
-# efficiently and fixes HiDPI issues.
-ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" }
+[workspace]
+members = [
+ "core",
+ "examples",
+]
diff --git a/core/Cargo.toml b/core/Cargo.toml
new file mode 100644
index 00000000..cd84d03e
--- /dev/null
+++ b/core/Cargo.toml
@@ -0,0 +1,25 @@
+[package]
+name = "iced"
+version = "0.1.0-alpha"
+authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
+edition = "2018"
+description = "A GUI runtime, heavily inspired by Elm."
+license = "MIT"
+repository = "https://github.com/hecrj/iced"
+documentation = "https://docs.rs/iced"
+readme = "README.md"
+keywords = ["gui", "ui", "graphics", "interface", "widgets"]
+categories = ["gui"]
+
+[badges]
+maintenance = { status = "actively-developed" }
+
+[package.metadata.docs.rs]
+features = ["winit"]
+
+[dependencies]
+stretch = "0.2"
+twox-hash = "1.5"
+
+# Enable to obtain conversion traits
+winit = { version = "0.20.0-alpha3", optional = true }
diff --git a/src/element.rs b/core/src/element.rs
index 70d06f42..70d06f42 100644
--- a/src/element.rs
+++ b/core/src/element.rs
diff --git a/src/event.rs b/core/src/event.rs
index 71f06006..71f06006 100644
--- a/src/event.rs
+++ b/core/src/event.rs
diff --git a/src/hasher.rs b/core/src/hasher.rs
index 9f6aacce..9f6aacce 100644
--- a/src/hasher.rs
+++ b/core/src/hasher.rs
diff --git a/src/input.rs b/core/src/input.rs
index 097fa730..097fa730 100644
--- a/src/input.rs
+++ b/core/src/input.rs
diff --git a/src/input/button_state.rs b/core/src/input/button_state.rs
index e9dc05d7..e9dc05d7 100644
--- a/src/input/button_state.rs
+++ b/core/src/input/button_state.rs
diff --git a/src/input/keyboard.rs b/core/src/input/keyboard.rs
index 57c24484..57c24484 100644
--- a/src/input/keyboard.rs
+++ b/core/src/input/keyboard.rs
diff --git a/src/input/keyboard/event.rs b/core/src/input/keyboard/event.rs
index 8118f112..8118f112 100644
--- a/src/input/keyboard/event.rs
+++ b/core/src/input/keyboard/event.rs
diff --git a/src/input/keyboard/key_code.rs b/core/src/input/keyboard/key_code.rs
index 207ddeac..207ddeac 100644
--- a/src/input/keyboard/key_code.rs
+++ b/core/src/input/keyboard/key_code.rs
diff --git a/src/input/mouse.rs b/core/src/input/mouse.rs
index d37f5b96..d37f5b96 100644
--- a/src/input/mouse.rs
+++ b/core/src/input/mouse.rs
diff --git a/src/input/mouse/button.rs b/core/src/input/mouse/button.rs
index 6320d701..6320d701 100644
--- a/src/input/mouse/button.rs
+++ b/core/src/input/mouse/button.rs
diff --git a/src/input/mouse/event.rs b/core/src/input/mouse/event.rs
index 7b68208f..7b68208f 100644
--- a/src/input/mouse/event.rs
+++ b/core/src/input/mouse/event.rs
diff --git a/src/layout.rs b/core/src/layout.rs
index de284a43..de284a43 100644
--- a/src/layout.rs
+++ b/core/src/layout.rs
diff --git a/src/lib.rs b/core/src/lib.rs
index c1c18b41..c1c18b41 100644
--- a/src/lib.rs
+++ b/core/src/lib.rs
diff --git a/src/mouse_cursor.rs b/core/src/mouse_cursor.rs
index 4ef6361a..4ef6361a 100644
--- a/src/mouse_cursor.rs
+++ b/core/src/mouse_cursor.rs
diff --git a/src/node.rs b/core/src/node.rs
index 1db10d7f..1db10d7f 100644
--- a/src/node.rs
+++ b/core/src/node.rs
diff --git a/src/point.rs b/core/src/point.rs
index 183998dd..183998dd 100644
--- a/src/point.rs
+++ b/core/src/point.rs
diff --git a/src/rectangle.rs b/core/src/rectangle.rs
index 95c2570c..95c2570c 100644
--- a/src/rectangle.rs
+++ b/core/src/rectangle.rs
diff --git a/src/renderer.rs b/core/src/renderer.rs
index b445190b..b445190b 100644
--- a/src/renderer.rs
+++ b/core/src/renderer.rs
diff --git a/src/style.rs b/core/src/style.rs
index 575ea366..575ea366 100644
--- a/src/style.rs
+++ b/core/src/style.rs
diff --git a/src/user_interface.rs b/core/src/user_interface.rs
index 2c7cbf82..2c7cbf82 100644
--- a/src/user_interface.rs
+++ b/core/src/user_interface.rs
diff --git a/src/vector.rs b/core/src/vector.rs
index f45daab9..f45daab9 100644
--- a/src/vector.rs
+++ b/core/src/vector.rs
diff --git a/src/widget.rs b/core/src/widget.rs
index 30606934..30606934 100644
--- a/src/widget.rs
+++ b/core/src/widget.rs
diff --git a/src/widget/button.rs b/core/src/widget/button.rs
index abcdbfeb..abcdbfeb 100644
--- a/src/widget/button.rs
+++ b/core/src/widget/button.rs
diff --git a/src/widget/checkbox.rs b/core/src/widget/checkbox.rs
index c60807fd..c60807fd 100644
--- a/src/widget/checkbox.rs
+++ b/core/src/widget/checkbox.rs
diff --git a/src/widget/column.rs b/core/src/widget/column.rs
index ff754e98..ff754e98 100644
--- a/src/widget/column.rs
+++ b/core/src/widget/column.rs
diff --git a/src/widget/image.rs b/core/src/widget/image.rs
index d94bfea5..d94bfea5 100644
--- a/src/widget/image.rs
+++ b/core/src/widget/image.rs
diff --git a/src/widget/panel.rs b/core/src/widget/panel.rs
index d43d6fb6..d43d6fb6 100644
--- a/src/widget/panel.rs
+++ b/core/src/widget/panel.rs
diff --git a/src/widget/progress_bar.rs b/core/src/widget/progress_bar.rs
index d4499160..d4499160 100644
--- a/src/widget/progress_bar.rs
+++ b/core/src/widget/progress_bar.rs
diff --git a/src/widget/radio.rs b/core/src/widget/radio.rs
index 28353ef4..28353ef4 100644
--- a/src/widget/radio.rs
+++ b/core/src/widget/radio.rs
diff --git a/src/widget/row.rs b/core/src/widget/row.rs
index 959528dc..959528dc 100644
--- a/src/widget/row.rs
+++ b/core/src/widget/row.rs
diff --git a/src/widget/slider.rs b/core/src/widget/slider.rs
index cdec9ec4..cdec9ec4 100644
--- a/src/widget/slider.rs
+++ b/core/src/widget/slider.rs
diff --git a/src/widget/text.rs b/core/src/widget/text.rs
index 59b599bb..59b599bb 100644
--- a/src/widget/text.rs
+++ b/core/src/widget/text.rs
diff --git a/examples/Cargo.toml b/examples/Cargo.toml
new file mode 100644
index 00000000..fdf854cd
--- /dev/null
+++ b/examples/Cargo.toml
@@ -0,0 +1,17 @@
+[package]
+name = "iced_examples"
+version = "0.0.0"
+authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
+publish = false
+edition = "2018"
+
+[[bin]]
+name = "tour"
+path = "tour/main.rs"
+
+[dependencies]
+iced = { version = "0.1.0-alpha", path = "../core" }
+
+# A personal `ggez` fork that introduces a `FontCache` type to measure text
+# efficiently and fixes HiDPI issues.
+ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" }
diff --git a/examples/tour/main.rs b/examples/tour/main.rs
index 571bc2e2..ce477fd9 100644
--- a/examples/tour/main.rs
+++ b/examples/tour/main.rs
@@ -27,7 +27,7 @@ pub fn main() -> ggez::GameResult {
filesystem::mount(
context,
std::path::Path::new(&format!(
- "{}/examples/resources",
+ "{}/resources",
env!("CARGO_MANIFEST_DIR")
)),
true,