Registry / utility / uptime-lib

uptime-lib

JSON →
library0.3.1rscratesunverified

Multi-platform uptime library.

# Cargo.toml [dependencies] uptime_lib = "0.3.1"
INSTALL
IMPORT
SIG · UPTIME-LIB
U
uptime-lib
utilityrustv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get
✓ use uptime_lib::get;

Get system uptime.

use uptime_lib::get; fn main() { match get() { Ok(uptime) => println!("Uptime: {:?}", uptime), Err(e) => eprintln!("Error: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
uptime-lib — cargo add uptime-lib · libregistry