diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2019-03-08 20:59:04 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2019-03-08 20:59:04 +0100 |
| commit | 048c513204ec3ee2f85c6667590ae644b46f92e0 (patch) | |
| tree | 8980de6e908fd630d58383085647675c2bfb66a6 /src/lib.rs | |
| parent | 7202a395f9397ef22e137037a31d85668ceb1be7 (diff) | |
Display version number in usage text
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |
