From cd4e5a5330b9ccc75c4cb91c2e91bfd16efd36cf Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sat, 7 Jul 2018 22:06:53 +0300 Subject: Use cargo vars for app metadata --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3db18f7..d05f302 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,11 +7,10 @@ use std::path::Path; use std::process; mod cli; -mod upnp; fn main() { - let app = App::new("Rustcast") - .version("0.1") + let app = App::new(env!("CARGO_PKG_NAME")) + .version(env!("CARGO_PKG_VERSION")) .author("Yuval Adam") .about("A simple UPnP/DLNA casting player") .arg(Arg::with_name("FILE") -- cgit v1.3.1