warpgate_api/host.rs
1use crate::api_struct;
2use crate::virtual_path::VirtualPath;
3
4pub use system_env::{SystemArch as HostArch, SystemLibc as HostLibc, SystemOS as HostOS};
5
6api_struct!(
7 /// Information about the host environment (the current runtime).
8 pub struct HostEnvironment {
9 pub arch: HostArch,
10 pub ci: bool,
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: VirtualPath,
22 }
23);