diff options
author | 2019-09-14 19:16:06 +0200 | |
---|---|---|
committer | 2019-09-14 19:16:06 +0200 | |
commit | a97401aed2a173260a4abfdb65a77975ce6c0f01 (patch) | |
tree | ca85ba2e078ddfeee8e74abd4eaae7c25b031cb2 /examples | |
parent | 8b8f7563ad33dafeadf6238e377748cdec17d67a (diff) | |
download | iced-a97401aed2a173260a4abfdb65a77975ce6c0f01.tar.gz iced-a97401aed2a173260a4abfdb65a77975ce6c0f01.tar.bz2 iced-a97401aed2a173260a4abfdb65a77975ce6c0f01.zip |
Rethink workspace structure
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Cargo.toml | 17 | ||||
-rw-r--r-- | examples/README.md | 10 | ||||
-rw-r--r-- | examples/tour/main.rs | 2 |
3 files changed, 6 insertions, 23 deletions
diff --git a/examples/Cargo.toml b/examples/Cargo.toml deleted file mode 100644 index fdf854cd..00000000 --- a/examples/Cargo.toml +++ /dev/null @@ -1,17 +0,0 @@ -[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/README.md b/examples/README.md index 0a8a126e..2032df49 100644 --- a/examples/README.md +++ b/examples/README.md @@ -26,16 +26,16 @@ The implementation consists of different modules: the [`renderer`]. ``` -cargo run --example tour +cargo run --package iced_ggez_tour ``` [![Tour - Iced][gui_gif]][gui_gfycat] [`ggez`]: https://github.com/ggez/ggez -[`tour`]: tour/tour.rs -[`renderer`]: tour/renderer -[`widget`]: tour/widget.rs -[`main`]: tour/main.rs +[`tour`]: tour/src/tour.rs +[`renderer`]: tour/src/renderer +[`widget`]: tour/src/widget.rs +[`main`]: tour/src/main.rs [personal fork]: https://github.com/hecrj/ggez [add a `FontCache` type]: https://github.com/ggez/ggez/pull/679 [fix some issues with HiDPI]: https://github.com/hecrj/ggez/commit/dfe2fd2423c51a6daf42c75f66dfaeaacd439fb1 diff --git a/examples/tour/main.rs b/examples/tour/main.rs index ce477fd9..571bc2e2 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!( - "{}/resources", + "{}/examples/resources", env!("CARGO_MANIFEST_DIR") )), true, |