1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# =============================================================================
# R E P S ยท sys-lib
# =============================================================================
[]
= "sys-lib"
= "0.2.0"
# Minimum Supported Rust Version (MSRV)
# 1.89: `std::fs::File::lock` and `File::try_lock` are stable from 1.89.0, so
# the process guard needs no lock FFI (dev/PLAN.md, D-002).
= "1.89"
= "2024"
# License
= "Apache-2.0 OR MIT"
# Readme
= "README.md"
# Description
= "System facts for Rust services: OS, CPU, memory, disks, network, host, this process, virtualization, power, and device identity, container-aware by default, plus build info, instance info, and a process guard. No subprocesses, zero third-party dependencies."
# Keywords (5 max)
= ["system", "hardware", "cpu", "memory", "os"]
# Categories
= ["os", "hardware-support"]
# Links
= "https://github.com/jamesgober/sys-lib"
= "https://github.com/jamesgober/sys-lib"
= "https://docs.rs/sys-lib"
# Authors
= ["James Gober <me@jamesgober.com>"]
# Fixture machines (thousands of small files) and the fuzz crate stay in the
# repository; fixture tests skip when the tree is absent (dev/PLAN.md, D-018).
= ["/tests/fixtures/", "/fuzz/"]
[]
= true
= ["--cfg", "docsrs"]
# Every platform's items appear on docs.rs, each with its doc(cfg) badge.
= ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "aarch64-apple-darwin"]
[]
= "sys_lib"
= "src/lib.rs"
# FEATURE FLAGS
# #################################
[]
= ["instance", "guard"]
# Instance info: `Instance`, `InstanceId` (brings clock-lib and id-forge).
= []
# Process guard: `process::guard`, `Guard` (brings path-lib).
= []
# Device identity: the `device` module (brings crypt-io). Off by default:
# device identifiers carry privacy obligations; the caller opts in knowingly.
= []
# DEPENDENCIES
# #################################
[]
# None yet. Planned first-party dependencies and the reason for each are
# listed in dev/PLAN.md section 16; each is added, by published version, with
# the first code that needs it. No third-party runtime dependencies.
# DEV DEPENDENCIES
# #################################
[]
# Test oracles only, never runtime dependencies: the unit tests in
# src/sys/<platform>/ffi.rs compare the size, alignment, and every field offset
# of sys-lib's own #[repr(C)] OS structs with these crates' definitions, on
# every CI target (dev/PLAN.md, D-012).
[]
= "0.2.170"
[]
= { = "0.61", = [
"Win32_Foundation",
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Ioctl",
"Win32_System_JobObjects",
"Win32_System_Power",
"Win32_System_ProcessStatus",
"Win32_System_Registry",
"Win32_System_SystemInformation",
"Win32_System_Threading",
"Win32_System_Time",
"Win32_System_WindowsProgramming",
] }
# RELEASE PROFILE
# #################################
[]
= 3
= "fat"
= 1
= "abort"
= "symbols"