summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-10 19:41:49 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-10 19:41:49 +0200
commit8b8f7563ad33dafeadf6238e377748cdec17d67a (patch)
tree45a601d18a054ccdd068eeac93730e4e99252158 /examples
parent2913c64da3452d1fbf92384e4ff32c278fb383f8 (diff)
downloadiced-8b8f7563ad33dafeadf6238e377748cdec17d67a.tar.gz
iced-8b8f7563ad33dafeadf6238e377748cdec17d67a.tar.bz2
iced-8b8f7563ad33dafeadf6238e377748cdec17d67a.zip
Switch to workspace layout
Diffstat (limited to 'examples')
-rw-r--r--examples/Cargo.toml17
-rw-r--r--examples/tour/main.rs2
2 files changed, 18 insertions, 1 deletions
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,