Files
rust-discovery/crates/agent-windows/src/main.rs
T
kevin_janssen 0b1f582998
Rust development slice / linux (push) Failing after 6s
Add crash-safe passive Windows certificate renewal
2026-11-15 13:54:59 +01:00

28 lines
680 B
Rust

#[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);
}