Skip to main content

Crate lighty_core

Crate lighty_core 

Source
Expand description

Foundation utilities (AppState, HTTP client, hashing, download, extract, OS probe).

Re-exports§

pub use errors::SystemError;
pub use errors::SystemResult;
pub use errors::ExtractError;
pub use errors::ExtractResult;
pub use errors::DownloadError;
pub use errors::DownloadResult;
pub use errors::AppStateError;
pub use errors::AppStateResult;
pub use errors::QueryError;
pub use errors::QueryResult;
pub use hash::HashError;
pub use hash::HashResult;
pub use hash::verify_file_sha1;
pub use hash::verify_file_sha1_streaming;
pub use hash::calculate_file_sha1_sync;
pub use hash::verify_file_sha1_sync;
pub use hash::calculate_sha1_bytes;
pub use hash::calculate_sha1_bytes_raw;
pub use app_state::AppState;

Modules§

app_state
Process-wide launcher paths resolved via the dirs crate.
download
errors
extract
hash
SHA1 file hashing utilities (sync and async).
hosts
macros
system
Compile-time OS / architecture detection and per-vendor name mapping.

Macros§

join_and_mkdir
join_and_mkdir_vec
mkdir
Fire-and-forget create_dir_all — logs errors via trace_error! and swallows them. Prefer [try_mkdir!] when callers need to short-circuit.
mkdir_blocking
time_it
trace_debug
trace_error
trace_info
trace_warn
try_mkdir
Async create_dir_all that propagates the io::Error for fail-fast pipelines.