#[cfg(feature = "enable-serde")]
use serde::*;
#[derive(Debug, Clone, Copy, PartialOrd, Ord, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "enable-serde", serde(rename_all = "snake_case"))]
pub enum ThreadStartType {
MainThread,
ThreadSpawn { start_ptr: u64 },
}
#[derive(Debug, Clone, Default, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "enable-serde", serde(rename_all = "snake_case"))]
pub struct WasiMemoryLayout {
pub stack_upper: u64,
pub stack_lower: u64,
#[allow(dead_code)]
pub guard_size: u64,
pub stack_size: u64,
}