wazabin_binary/target_os.rs
1//! The [`TargetOs`] enum: a loaded binary's operating system.
2//!
3//! Lives here (not in `qcode` core) so `wazabin_binary`'s [`BinaryFormat::os`] can name
4//! it while `wazabin_binary` stays a leaf below `qcode`. `qcode` core re-exports it as
5//! `qcode::context::TargetOs`, so existing paths keep compiling.
6//!
7//! [`BinaryFormat::os`]: crate::BinaryFormat::os
8
9/// The operating system of a loaded binary, inferred from its container format.
10#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
11pub enum TargetOs {
12 #[default]
13 Unknown,
14 Windows,
15 Linux,
16}