Skip to main content

lighty_core/
lib.rs

1//! Foundation utilities (AppState, HTTP client, hashing, download, extract, OS probe).
2
3pub mod system;
4pub mod macros;
5pub mod hosts;
6pub mod download;
7pub mod extract;
8pub mod hash;
9pub mod errors;
10pub mod app_state;
11
12pub use errors::{
13    SystemError, SystemResult,
14    ExtractError, ExtractResult,
15    DownloadError, DownloadResult,
16    AppStateError, AppStateResult,
17    QueryError, QueryResult,
18};
19
20pub use hash::{
21    HashError, HashResult,
22    verify_file_sha1, verify_file_sha1_streaming,
23    calculate_file_sha1_sync, verify_file_sha1_sync,
24    calculate_sha1_bytes, calculate_sha1_bytes_raw,
25};
26
27pub use app_state::AppState;