euv-core 0.54.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Error returned when an `.euvpak` archive file cannot be opened or read from disk.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ERR_EUVPAK_OPEN_FAILED: &str = "euvpak: failed to open archive";

/// Error returned when the OS descriptor or handle for an `.euvpak` file is invalid.
#[cfg(any(unix, windows))]
pub(crate) const ERR_EUVPAK_INVALID_HANDLE: &str = "euvpak: invalid OS file handle";

/// Error returned when the OS virtual memory mapping syscall fails.
#[cfg(any(unix, windows))]
pub(crate) const ERR_EUVPAK_MMAP_FAILED: &str = "euvpak: OS virtual memory map failed";

/// Error returned when an archive exceeds addressable virtual memory on the host architecture.
#[cfg(any(unix, windows))]
pub(crate) const ERR_EUVPAK_TOO_LARGE: &str = "euvpak: archive exceeds addressable virtual memory";

/// POSIX `PROT_READ` virtual memory protection flag.
#[cfg(unix)]
pub(crate) const POSIX_PROT_READ: i32 = 0x1;

/// POSIX `MAP_PRIVATE` virtual memory sharing flag.
#[cfg(unix)]
pub(crate) const POSIX_MAP_PRIVATE: i32 = 0x2;

/// POSIX `MADV_RANDOM` access hint disabling unnecessary sequential read-ahead on large bodies.
#[cfg(unix)]
pub(crate) const POSIX_MADV_RANDOM: i32 = 1;

/// POSIX `MADV_WILLNEED` access hint triggering OS read-ahead for the contiguous Mip-Tail Superblock.
#[cfg(unix)]
pub(crate) const POSIX_MADV_WILLNEED: i32 = 3;

/// Conservative 16 KiB page alignment granularity compatible with both 4 KiB and 16 KiB Unix kernels.
#[cfg(unix)]
pub(crate) const POSIX_ADVISE_ALIGN_BYTES: usize = 16_384;

/// Win32 `PAGE_READONLY` protection flag for `CreateFileMappingW`.
#[cfg(windows)]
pub(crate) const WIN32_PAGE_READONLY: u32 = 0x02;

/// Win32 `FILE_MAP_READ` access flag for `MapViewOfFile`.
#[cfg(windows)]
pub(crate) const WIN32_FILE_MAP_READ: u32 = 0x0004;

/// Error returned when `open_mmap` is invoked on `wasm32` where filesystem mapping is unavailable.
#[cfg(target_arch = "wasm32")]
pub(crate) const ERR_EUVPAK_WASM_UNSUPPORTED: &str =
    "euvpak: filesystem mmap unavailable on wasm32; use from_bytes";