Skip to content

Commit

Permalink
Take version from Cargo.toml at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
ajclark committed Oct 30, 2024
1 parent 68b73c7 commit a8b5176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[package]
name = "zap"
version = "0.1.0"
version = "0.8.0-alpha"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = "3.0"
indicatif = "0.17.7"
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn validate_paths(source: &str, destination: &str) -> Result<(), String> {

fn main() {
let matches = App::new("Zap")
.version("v0.8.0-alpha")
.version(env!("CARGO_PKG_VERSION"))
.author("Allan Clark. <[email protected]>")
.about("Transfers a file in parallel streams over SSH")
.arg_required_else_help(true)
Expand Down

0 comments on commit a8b5176

Please sign in to comment.