From 048c513204ec3ee2f85c6667590ae644b46f92e0 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Fri, 8 Mar 2019 20:59:04 +0100 Subject: Display version number in usage text --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 7e0051a..659e2df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,8 @@ use std::net::{SocketAddr, UdpSocket}; use std::path::{Path, PathBuf}; use std::time::Duration; +pub static VERSION: Option<&str> = option_env!("CARGO_PKG_VERSION"); + #[repr(u16)] pub enum Opcodes { RRQ = 0x01, -- cgit v1.2.3