1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-01 03:02:31 +00:00

build: bump shadow-rs from 0.8.1 to 0.9.0 (#3648)

This commit is contained in:
baoyachi. Aka Rust Hairy crabs 2022-02-27 00:34:48 +08:00 committed by GitHub
parent 38fce2e6b0
commit 2119938692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View File

@ -1570,9 +1570,9 @@ checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
[[package]] [[package]]
name = "shadow-rs" name = "shadow-rs"
version = "0.8.1" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8935e920eb80ff8f5a5bced990325d12f6cc1015154a3852c6a23cf5bd71c447" checksum = "38aacac9d96bfdac3f00d2149fc2235f99b839f54f0bb18bea39c7749c97f709"
dependencies = [ dependencies = [
"chrono", "chrono",
"git2", "git2",

View File

@ -55,7 +55,7 @@ semver = "1.0.6"
serde = { version = "1.0.136", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79" serde_json = "1.0.79"
sha-1 = "0.10.0" sha-1 = "0.10.0"
shadow-rs = "0.8.1" shadow-rs = "0.9.0"
# battery is optional (on by default) because the crate doesn't currently build for Termux # battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33 # see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.7.9", optional = true } starship-battery = { version = "0.7.9", optional = true }
@ -83,7 +83,7 @@ winapi = { version = "0.3.9", features = ["winuser", "securitybaseapi", "process
nix = "0.23.1" nix = "0.23.1"
[build-dependencies] [build-dependencies]
shadow-rs = "0.8.1" shadow-rs = "0.9.0"
[target.'cfg(windows)'.build-dependencies] [target.'cfg(windows)'.build-dependencies]
winres = "0.1.12" winres = "0.1.12"

View File

@ -13,7 +13,7 @@ use starship::module::ALL_MODULES;
use starship::*; use starship::*;
fn long_version() -> &'static str { fn long_version() -> &'static str {
let ver = Box::new(crate::shadow::clap_version()); let ver = Box::new(crate::shadow::clap_long_version());
Box::leak(ver).as_str() Box::leak(ver).as_str()
} }