forked from extern/nushell
update sysinfo due to breaking change with get_version (#2988)
This commit is contained in:
parent
44e088c6fe
commit
87c7898b65
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -5272,9 +5272,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sysinfo"
|
name = "sysinfo"
|
||||||
version = "0.15.9"
|
version = "0.15.11"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "de94457a09609f33fec5e7fceaf907488967c6c7c75d64da6a7ce6ffdb8b5abd"
|
checksum = "dd024ccff6b09c6be38d41f168b7f3e132bac86338ee4b24fa485caf601ee158"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"cfg-if 1.0.0",
|
"cfg-if 1.0.0",
|
||||||
|
@ -19,6 +19,6 @@ num-bigint = "0.3.0"
|
|||||||
|
|
||||||
futures = {version = "0.3.5", features = ["compat", "io-compat"]}
|
futures = {version = "0.3.5", features = ["compat", "io-compat"]}
|
||||||
futures-timer = "3.0.2"
|
futures-timer = "3.0.2"
|
||||||
sysinfo = "0.15.9"
|
sysinfo = "0.15.11"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@ -18,6 +18,6 @@ nu-source = { path = "../nu-source", version = "0.26.0" }
|
|||||||
futures = { version = "0.3.5", features = ["compat", "io-compat"] }
|
futures = { version = "0.3.5", features = ["compat", "io-compat"] }
|
||||||
futures-util = "0.3.5"
|
futures-util = "0.3.5"
|
||||||
num-bigint = "0.3.0"
|
num-bigint = "0.3.0"
|
||||||
sysinfo = "0.15.9"
|
sysinfo = "0.15.11"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@ -115,8 +115,17 @@ pub fn host(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
|||||||
if let Some(name) = sys.get_name() {
|
if let Some(name) = sys.get_name() {
|
||||||
dict.insert_untagged("name", UntaggedValue::string(trim_cstyle_null(name)));
|
dict.insert_untagged("name", UntaggedValue::string(trim_cstyle_null(name)));
|
||||||
}
|
}
|
||||||
if let Some(version) = sys.get_version() {
|
if let Some(version) = sys.get_os_version() {
|
||||||
dict.insert_untagged("version", UntaggedValue::string(trim_cstyle_null(version)));
|
dict.insert_untagged(
|
||||||
|
"os version",
|
||||||
|
UntaggedValue::string(trim_cstyle_null(version)),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if let Some(version) = sys.get_kernel_version() {
|
||||||
|
dict.insert_untagged(
|
||||||
|
"kernel version",
|
||||||
|
UntaggedValue::string(trim_cstyle_null(version)),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if let Some(hostname) = sys.get_host_name() {
|
if let Some(hostname) = sys.get_host_name() {
|
||||||
dict.insert_untagged(
|
dict.insert_untagged(
|
||||||
|
Loading…
Reference in New Issue
Block a user