2022-01-14 07:20:53 +01:00
|
|
|
[package]
|
2022-03-13 19:30:27 +01:00
|
|
|
authors = ["The Nushell Project Developers", "procs creators"]
|
2022-01-14 07:20:53 +01:00
|
|
|
description = "Nushell system querying"
|
2022-08-14 14:21:20 +02:00
|
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-system"
|
2022-01-14 07:20:53 +01:00
|
|
|
name = "nu-system"
|
2024-10-20 23:12:41 +02:00
|
|
|
version = "0.99.2"
|
2022-01-14 07:20:53 +01:00
|
|
|
edition = "2021"
|
2022-03-22 21:25:38 +01:00
|
|
|
license = "MIT"
|
2022-01-14 07:20:53 +01:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
2023-02-12 23:22:00 +01:00
|
|
|
[lib]
|
|
|
|
bench = false
|
|
|
|
|
2024-08-28 23:37:17 +02:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2022-01-14 07:20:53 +01:00
|
|
|
[dependencies]
|
2024-03-24 00:46:02 +01:00
|
|
|
libc = { workspace = true }
|
2024-03-07 23:40:31 +01:00
|
|
|
log = { workspace = true }
|
|
|
|
sysinfo = { workspace = true }
|
Add support for the `ps` command on FreeBSD, NetBSD, and OpenBSD (#12892)
# Description
I feel like it's a little sad that BSDs get to enjoy almost everything
other than the `ps` command, and there are some tests that rely on this
command, so I figured it would be fun to patch that and make it work.
The different BSDs have diverged from each other somewhat, but generally
have a similar enough API for reading process information via
`sysctl()`, with some slightly different args.
This supports FreeBSD with the `freebsd` module, and NetBSD and OpenBSD
with the `netbsd` module. OpenBSD is a fork of NetBSD and the interface
has some minor differences but many things are the same.
I had wanted to try to support DragonFlyBSD too, but their Rust version
in the latest release is only 1.72.0, which is too old for me to want to
try to compile rustc up to 1.77.2... but I will revisit this whenever
they do update it. Dragonfly is a fork of FreeBSD, so it's likely to be
more or less the same - I just don't want to enable it without testing
it.
Fixes #6862 (partially, we probably won't be adding `zfs list`)
# User-Facing Changes
`ps` added for FreeBSD, NetBSD, and OpenBSD.
# Tests + Formatting
The CI doesn't run tests for BSDs, so I'm not entirely sure if
everything was already passing before. (Frankly, it's unlikely.) But
nothing appears to be broken.
# After Submitting
- [ ] release notes?
- [ ] DragonflyBSD, whenever they do update Rust to something close
enough for me to try it
2024-05-22 17:13:45 +02:00
|
|
|
itertools = { workspace = true }
|
2022-01-14 07:20:53 +01:00
|
|
|
|
2022-09-29 20:37:48 +02:00
|
|
|
[target.'cfg(target_family = "unix")'.dependencies]
|
2024-03-07 23:40:31 +01:00
|
|
|
nix = { workspace = true, default-features = false, features = ["fs", "term", "process", "signal"] }
|
2022-09-29 20:37:48 +02:00
|
|
|
|
2022-03-26 19:21:19 +01:00
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
|
2024-03-24 00:46:02 +01:00
|
|
|
procfs = { workspace = true }
|
2022-01-14 07:20:53 +01:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
2024-03-24 00:46:02 +01:00
|
|
|
libproc = { workspace = true }
|
|
|
|
mach2 = { workspace = true }
|
2022-01-14 07:20:53 +01:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
2024-03-07 23:40:31 +01:00
|
|
|
chrono = { workspace = true, default-features = false, features = ["clock"] }
|
2022-10-30 14:29:41 +01:00
|
|
|
ntapi = "0.4"
|
2024-03-24 00:46:02 +01:00
|
|
|
windows = { workspace = true, features = [
|
2024-01-04 18:17:19 +01:00
|
|
|
"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",
|
2024-10-15 21:01:08 +02:00
|
|
|
]}
|