wasmtime 24.0.7

High-level API to expose the Wasmtime runtime
Documentation
//! Implementation of garbage collection and GC types in Wasmtime.

mod drc;
mod externref;
mod free_list;
mod structref;

pub use drc::*;
pub use externref::*;
pub use structref::*;

use crate::runtime::vm::GcRuntime;

/// Get the default GC runtime.
pub fn default_gc_runtime() -> impl GcRuntime {
    DrcCollector
}

/// The default GC heap capacity: 512KiB.
const DEFAULT_GC_HEAP_CAPACITY: usize = 1 << 19;