forked from extern/nushell
f2095ed0cc
# Description Cross build for target `x86_64-pc-windows-gnu` fails on linux. ```console nushell on main [?] is 📦 v0.88.2 via 🦀 v1.77.0-nightly ❯ cargo build --target x86_64-pc-windows-gnu -p nu-system Compiling nu-system v0.88.2 (/data/source/nushell/crates/nu-system) error[E0432]: unresolved import `chrono::Local` --> crates/nu-system/src/windows.rs:5:14 | 5 | use chrono::{Local, NaiveDate}; | ^^^^^ no `Local` in the root | note: found an item that was configured out --> /path/to/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/chrono-0.4.31/src/lib.rs:537:17 | 537 | pub use offset::Local; | ^^^^^ = note: the item is gated behind the `clock` feature error[E0412]: cannot find type `Local` in crate `chrono` --> crates/nu-system/src/windows.rs:68:46 | 68 | pub start_time: chrono::DateTime<chrono::Local>, | ^^^^^ not found in `chrono` | note: found an item that was configured out --> /path/to/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/chrono-0.4.31/src/lib.rs:537:17 | 537 | pub use offset::Local; | ^^^^^ = note: the item is gated behind the `clock` feature Some errors have detailed explanations: E0412, E0432. For more information about an error, try `rustc --explain E0412`. error: could not compile `nu-system` (lib) due to 2 previous errors ```
48 lines
1.3 KiB
TOML
48 lines
1.3 KiB
TOML
[package]
|
|
authors = ["The Nushell Project Developers", "procs creators"]
|
|
description = "Nushell system querying"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-system"
|
|
name = "nu-system"
|
|
version = "0.88.2"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dependencies]
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
sysinfo = "0.30"
|
|
|
|
[target.'cfg(target_family = "unix")'.dependencies]
|
|
nix = { version = "0.27", default-features = false, features = ["fs", "term", "process", "signal"] }
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
|
|
procfs = "0.16"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
libproc = "0.14"
|
|
mach2 = "0.4"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
ntapi = "0.4"
|
|
once_cell = "1.18"
|
|
windows = { version = "0.52", features = [
|
|
"Wdk_System_SystemServices",
|
|
"Wdk_System_Threading",
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_System_Diagnostics_Debug",
|
|
"Win32_System_Diagnostics_ToolHelp",
|
|
"Win32_System_Kernel",
|
|
"Win32_System_Memory",
|
|
"Win32_System_ProcessStatus",
|
|
"Win32_System_SystemInformation",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Shell",
|
|
]}
|