wasmtime-c-api-impl 44.0.0

C API to expose the Wasmtime runtime
Documentation
#[repr(C)]
#[derive(Clone)]
pub struct wasm_limits_t {
    pub min: u32,
    pub max: u32,
}

impl wasm_limits_t {
    pub(crate) fn max(&self) -> Option<u32> {
        if self.max == u32::max_value() {
            None
        } else {
            Some(self.max)
        }
    }
}

mod export;
mod r#extern;
mod func;
mod global;
mod import;
mod memory;
mod table;
mod tag;
mod val;
pub use self::export::*;
pub use self::r#extern::*;
pub use self::func::*;
pub use self::global::*;
pub use self::import::*;
pub use self::memory::*;
pub use self::table::*;
pub use self::tag::*;
pub use self::val::*;