diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-01-11 22:22:26 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-01-12 13:33:40 +0100 |
commit | bfc35e0517d1f2da4f33261b00cd654342bec2f5 (patch) | |
tree | a254b1fc70b93af742b03fe23cd2af7dc1bfbca1 /bin/core/imag-init/src | |
parent | 7fdc71230ef4b312f0dc525a98b5908b3b1e037e (diff) |
Remove dependency "version"
Because the "version" crate is licensed as GPL, which would us require
to release imag as GPL, we remove the crate now.
Diffstat (limited to 'bin/core/imag-init/src')
-rw-r--r-- | bin/core/imag-init/src/main.rs | 1 | ||||
-rw-r--r-- | bin/core/imag-init/src/ui.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs index 03908d91..bd7e3239 100644 --- a/bin/core/imag-init/src/main.rs +++ b/bin/core/imag-init/src/main.rs @@ -33,7 +33,6 @@ )] extern crate clap; -#[macro_use] extern crate version; #[cfg(test)] extern crate toml; diff --git a/bin/core/imag-init/src/ui.rs b/bin/core/imag-init/src/ui.rs index 9bcb7d63..deba3cdf 100644 --- a/bin/core/imag-init/src/ui.rs +++ b/bin/core/imag-init/src/ui.rs @@ -21,7 +21,7 @@ use clap::{Arg, App}; pub fn build_ui<'a>() -> App<'a, 'a> { App::new("imag-init") - .version(&version!()[..]) + .version(env!("CARGO_PKG_VERSION")) .author("Matthias Beyer <mail@beyermatthias.de>") .about("Initialize a ~/.imag repository. Optionally with git") |