libcros/lib.rs
1/// Easy-to-use key=value system with types.
2pub mod keyval;
3pub use keyval::*;
4
5/// Easy-to-use logging API
6pub mod logging;
7pub use logging::Logger;
8
9/// Basic cryptography functions
10pub mod crypto;
11
12/// Easy-to-use functions to execute commands
13pub mod execute;
14
15/// Lightweight argument parser
16pub mod libargs;
17
18/// Commonly-used structs
19pub mod structs;
20
21/// High-level functions to get information about a Chrome device
22pub mod sysinfo;
23
24/// Send/receive vendor commands to/from the GSC (Google Security Chip) / TPM.
25pub mod gsc;
26
27/// High-level functions to interact with a GPT-formatted disk. (Including ChromeOS disks)
28pub mod diskutils;
29
30/// Basic drawing functions for TUIs
31pub mod ui;
32
33/// Various high-level functions to read the cmdline of the currently-running Linux kernel.
34/// (assuming you have read permissions to `/proc/cmdline`)
35pub mod cmdline;
36
37/*
38Anything that requires a dependency should be locked behind a feature flag.
39
40Or, if the feature itself takes up a lot of space, we should also lock it
41behind a feature flag.
42*/
43
44/// A lightweight TPM2 library. Based on vboot's Tlcl library.
45#[cfg(feature = "tlcl")]
46pub mod tlcl;
47
48/*
49pub mod vpd;
50*/