diff options
author | 2019-11-03 04:49:57 +0100 | |
---|---|---|
committer | 2019-11-03 04:49:57 +0100 | |
commit | 1a2e512686caa5b644644155185cc5efe2087bee (patch) | |
tree | 76a1d060165b262b306e8e21a59f71010437cb24 /winit | |
parent | 24e53d92c5808bb47b316de632f51db69173d1c5 (diff) | |
download | iced-1a2e512686caa5b644644155185cc5efe2087bee.tar.gz iced-1a2e512686caa5b644644155185cc5efe2087bee.tar.bz2 iced-1a2e512686caa5b644644155185cc5efe2087bee.zip |
Add crate information to debug view
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/debug/basic.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winit/src/debug/basic.rs b/winit/src/debug/basic.rs index 09bb5ae1..67c6d8a2 100644 --- a/winit/src/debug/basic.rs +++ b/winit/src/debug/basic.rs @@ -149,6 +149,12 @@ impl Debug { format!("{: <30} {:?}", key, value) } + lines.push(format!( + "{} {} - {}", + env!("CARGO_PKG_NAME"), + env!("CARGO_PKG_VERSION"), + env!("CARGO_PKG_REPOSITORY"), + )); lines.push(key_value("Startup:", self.startup_duration)); lines.push(key_value("Update:", self.update_durations.average())); lines.push(key_value("View:", self.view_durations.average())); |