#![cfg(any(
all(test, target_arch = "x86_64", target_os = "linux"),
target_vendor = "unknown"
))]
#![doc = include_str!("../README.md")]
#![cfg_attr(not(test), no_std)]
#![deny(clippy::all)]
#![feature(c_size_t)]
#![feature(nonnull_slice_from_raw_parts)]
#![feature(slice_ptr_get)]
#![feature(slice_ptr_len)]
pub mod elf;
pub mod guest;
pub mod host;
pub mod item;
pub mod libc;
pub mod util;
pub type Error = core::ffi::c_int;
pub type Result<T> = core::result::Result<T, Error>;
pub const NULL: usize = usize::MAX;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const REQUIRES: [u8; VERSION.len() + 1] = {
let mut value = [0u8; VERSION.len() + 1];
let mut i = 0;
value[0] = b'^';
while i < VERSION.len() {
value[i + 1] = VERSION.as_bytes()[i];
i += 1;
}
value
};
pub const KVM_SYSCALL_TRIGGER_PORT: u16 = 0xFF;