#[cfg(all(windows, feature = "system-helper"))] mod update_observation_runtime; #[cfg(all(windows, feature = "system-helper"))] #[path = "../../agent/src/agent_update_health.rs"] mod agent_update_health; #[cfg(all(windows, feature = "system-helper"))] mod update_download; #[cfg(windows)] #[path = "../../agent/src/https_channel.rs"] mod https_channel; #[cfg(windows)] mod runtime; #[cfg(windows)] #[path = "../../agent/src/transport.rs"] mod transport; #[cfg(windows)] #[path = "../../agent/src/wire_channel.rs"] mod wire_channel; #[cfg(windows)] mod certificate_rotation { pub use rmm_agent_windows::certificate_rotation::DeviceIdentity; } #[cfg(windows)] fn main() { if runtime::main().is_err() { eprintln!("Windows passive agent stopped: INITIALIZATION_OR_TRANSPORT_FAILURE"); std::process::exit(1); } } #[cfg(not(windows))] fn main() { eprintln!("This binary requires native Windows."); std::process::exit(1); }