summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-09-16 14:28:24 +0200
committerLibravatar GitHub <noreply@github.com>2019-09-16 14:28:24 +0200
commitece4b1fbb23aed69f2f86d8ab6ee90eeb59664a7 (patch)
tree3da78d2f2521b433510af59863b462c6127d1f69
parent2913c64da3452d1fbf92384e4ff32c278fb383f8 (diff)
parent7bfcf4c0bcea3ceb0a5aa98be67e00118dd1704c (diff)
downloadiced-ece4b1fbb23aed69f2f86d8ab6ee90eeb59664a7.tar.gz
iced-ece4b1fbb23aed69f2f86d8ab6ee90eeb59664a7.tar.bz2
iced-ece4b1fbb23aed69f2f86d8ab6ee90eeb59664a7.zip
Merge pull request #15 from TGotwig/Perform-benchmarks
Add `env_logger` to tour example
Diffstat (limited to '')
-rw-r--r--.gitignore2
-rw-r--r--Cargo.toml1
-rw-r--r--examples/tour/main.rs2
3 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 2f88dbac..69369904 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
/target
**/*.rs.bk
-Cargo.lock \ No newline at end of file
+Cargo.lock
diff --git a/Cargo.toml b/Cargo.toml
index 1e806b22..5c259c97 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,3 +28,4 @@ winit = { version = "0.20.0-alpha3", optional = true }
# 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" }
+env_logger = "0.6"
diff --git a/examples/tour/main.rs b/examples/tour/main.rs
index 571bc2e2..1b60207b 100644
--- a/examples/tour/main.rs
+++ b/examples/tour/main.rs
@@ -13,6 +13,8 @@ use ggez::graphics;
use ggez::input::mouse;
pub fn main() -> ggez::GameResult {
+ env_logger::init();
+
let (context, event_loop) = {
&mut ggez::ContextBuilder::new("iced", "ggez")
.window_mode(ggez::conf::WindowMode {