Skip to content

Commit

Permalink
build: bump shadow to 0.10.0 & git2 to 0.14.2 (#3767)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkna authored Mar 20, 2022
1 parent 47838d1 commit 8d3bffd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 16 deletions.
33 changes: 27 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ clap_complete = "3.1.1"
directories-next = "2.0.0"
dunce = "1.0.2"
gethostname = "0.2.3"
git2 = { version = "0.13.25", default-features = false }
git2 = { version = "0.14.2", default-features = false }
indexmap = { version = "1.8.0", features = ["serde"] }
local_ipaddress = "0.1.3"
log = { version = "0.4.14", features = ["std"] }
Expand All @@ -61,7 +61,7 @@ semver = "1.0.6"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
sha-1 = "0.10.0"
shadow-rs = "0.9.0"
shadow-rs = "0.10.0"
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.7.9", optional = true }
Expand Down Expand Up @@ -89,7 +89,7 @@ winapi = { version = "0.3.9", features = ["winuser", "securitybaseapi", "process
nix = "0.23.1"

[build-dependencies]
shadow-rs = "0.9.0"
shadow-rs = "0.10.0"

[target.'cfg(windows)'.build-dependencies]
winres = "0.1.12"
Expand Down
2 changes: 1 addition & 1 deletion src/bug_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::path::PathBuf;
use std::time::Duration;

pub fn create() {
println!("{}\n", shadow::version().trim());
println!("{}\n", shadow::VERSION.trim());
let os_info = os_info::get();

let environment = Environment {
Expand Down
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,11 @@ use starship::context::{Properties, Target};
use starship::module::ALL_MODULES;
use starship::*;

fn long_version() -> &'static str {
let ver = Box::new(crate::shadow::clap_long_version());
Box::leak(ver).as_str()
}

#[derive(Parser, Debug)]
#[clap(
author=crate_authors!(),
version=shadow::PKG_VERSION,
long_version=long_version(),
long_version=shadow::CLAP_LONG_VERSION,
about="The cross-shell prompt for astronauts. ☄🌌️",
subcommand_required=true,
arg_required_else_help=true,
Expand Down

0 comments on commit 8d3bffd

Please sign in to comment.