warpgate_api/
host.rs

1use crate::api_struct;
2use crate::virtual_path::VirtualPath;
3use std::path::PathBuf;
4
5pub use system_env::{SystemArch as HostArch, SystemLibc as HostLibc, SystemOS as HostOS};
6
7api_struct!(
8    /// Information about the host environment (the current runtime).
9    pub struct HostEnvironment {
10        pub arch: HostArch,
11        pub libc: HostLibc,
12        pub os: HostOS,
13        pub home_dir: VirtualPath,
14    }
15);
16
17api_struct!(
18    /// Information about the current testing environment.
19    pub struct TestEnvironment {
20        pub ci: bool,
21        pub sandbox: PathBuf,
22    }
23);