summaryrefslogtreecommitdiffstats
path: root/third_party/rust/whatsys/examples/version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/whatsys/examples/version.rs')
-rw-r--r--third_party/rust/whatsys/examples/version.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/rust/whatsys/examples/version.rs b/third_party/rust/whatsys/examples/version.rs
new file mode 100644
index 0000000000..0bc9a16ede
--- /dev/null
+++ b/third_party/rust/whatsys/examples/version.rs
@@ -0,0 +1,5 @@
+fn main() {
+ println!("{:?}", whatsys::kernel_version());
+ #[cfg(target_os = "windows")]
+ println!("{:?}", whatsys::windows_build_number());
+}