Expand description
TR-300: Cross-platform system information report
This library provides the core functionality for collecting and displaying system information in TR-300’s table and JSON formats.
§Example
use tr300::{collectors::{CollectMode, SystemInfo}, config::Config, report};
// Full report (default)
let info = SystemInfo::collect().unwrap();
let config = Config::default();
let report = report::generate(&info, &config);
println!("{}", report);
// Fast report (skips slow collectors)
let info = SystemInfo::collect_with_mode(CollectMode::Fast).unwrap();
let report = report::generate(&info, &config);
println!("{}", report);Re-exports§
pub use collectors::CollectMode;pub use collectors::SystemInfo;pub use config::Config;pub use error::AppError;pub use error::Result;
Modules§
- cli
- collectors
- System information collectors
- config
- Configuration management for TR-300
- error
- Custom error types for tr300
- install
- Self-installation utilities
- migrate
- render
- Rendering modules for TR-300
- report
- Report generation for TR-300
- update
Constants§
- VERSION
- Library version
Functions§
- format_
bytes - Format bytes as a human-readable string (B, KB, MB, GB, TB)
- generate_
report - Generate a system report with default configuration (full mode)
- generate_
report_ with_ config - Generate a system report with custom configuration (full mode)
- is_
elevated - Detect whether the current process is running with elevated privileges.
- platform_
has_ elevated_ data - Whether the current platform has elevation-gated data points worth surfacing in a footer hint when running unelevated.