Skip to content

Commit

Permalink
Hardcode homepage URL for --version
Browse files Browse the repository at this point in the history
Setting the homepage in Cargo.toml causes it to annoyingly be duplicated
on crates.io (because it's already got the repository URL.) But
unfortunately there's no CARGO_PKG_REPOSITORY env.
  • Loading branch information
C4K3 committed Aug 20, 2017
1 parent 99b0012 commit 790013b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn main() {
env!("CARGO_PKG_VERSION"),
/* See build.rs for the git-revision.txt file */
include!(concat!(env!("OUT_DIR"), "/git-revision.txt")));
println!("{}", env!("CARGO_PKG_HOMEPAGE"));
println!("https://github.com/C4K3/nbted");
return;
}

Expand Down

0 comments on commit 790013b

Please sign in to comment.