From 1a2e512686caa5b644644155185cc5efe2087bee Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 3 Nov 2019 04:49:57 +0100 Subject: Add crate information to debug view --- winit/src/debug/basic.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winit') 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())); -- cgit