Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

10
vendor/sysinfo/md_doc/is_supported.md vendored Normal file
View File

@@ -0,0 +1,10 @@
Returns `true` if this OS is supported. Please refer to the
[crate-level documentation](index.html) to get the list of supported OSes.
```
if sysinfo::IS_SUPPORTED_SYSTEM {
println!("This OS is supported!");
} else {
println!("This OS isn't supported (yet?).");
}
```

View File

@@ -0,0 +1,8 @@
This is the minimum interval time used internally by `sysinfo` to refresh the CPU time.
⚠️ This value differs from one OS to another.
Why is this constant even needed?
If refreshed too often, the CPU usage of processes will be `0` whereas on Linux it'll
always be the maximum value (`number of CPUs * 100`).

20
vendor/sysinfo/md_doc/pid.md vendored Normal file
View File

@@ -0,0 +1,20 @@
Process ID.
Can be used as an integer type by simple casting. For example:
```
use sysinfo::Pid;
// 0's type will be different depending on the platform!
let p = Pid::from(0);
// For something more "general":
let p = Pid::from_u32(0);
let i: u32 = p.as_u32();
```
On glibc systems this is a glibc [`pid_t`](https://www.gnu.org/software/libc/manual/html_node/Process-Identification.html).
On Windows systems this is a [`usize` and represents a windows process identifier](https://docs.microsoft.com/en-us/windows/win32/procthread/process-handles-and-identifiers).
On unsupported systems, this is also a `usize`.

12
vendor/sysinfo/md_doc/serde.md vendored Normal file
View File

@@ -0,0 +1,12 @@
With the `serde` feature enabled, you can then serialize `sysinfo` types. Let's see an example with `serde_json`:
```
use sysinfo::System;
let mut sys = System::new_all();
// First we update all information of our `System` struct.
sys.refresh_all();
println!("{}", serde_json::to_string(&sys).unwrap());
```

1
vendor/sysinfo/md_doc/sid.md vendored Normal file
View File

@@ -0,0 +1 @@
Opaque type encapsulating a Windows SID.

View File

@@ -0,0 +1,8 @@
Returns the list of the supported signals on this system (used by
[`Process::kill_with`][crate::Process::kill_with]).
```
use sysinfo::{System, SUPPORTED_SIGNALS};
println!("supported signals: {:?}", SUPPORTED_SIGNALS);
```