dusk-wasmtime-runtime 21.0.0-alpha

Runtime library support for Wasmtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Implementation of garbage collection and GC types in Wasmtime.

mod drc;
mod externref;
mod free_list;

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

use crate::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;