Path: blob/main/examples/min-platform/embedding/cbindgen.toml
2450 views
language = "C"1include_guard = "_WASMTIME_PLATFORM_H"2include_version = true3cpp_compat = true45header = """6// Platform support for Wasmtime's `no_std` build.7//8// This header file is what Wasmtime will rely on when it does not otherwise9// have support for the native platform. This can happen with `no_std` binaries10// for example where the traditional Unix-or-Windows implementation is not11// suitable.12//13// Embedders are expected to implement the symbols defined in this header file.14// These symbols can be defined either in C/C++ or in Rust (using15// `#[unsafe(no_mangle)]`).16//17// Note that there are some `#define`s here which can be added before this18// header file is included to indicate how Wasmtime was built. This corresponds19// to the `wasmtime` crate's Cargo features where if the feature is disabled20// then the symbols will not be required.21//22// * `WASMTIME_SIGNALS_BASED_TRAPS` - corresponds to `signals-based-traps`23// * `WASMTIME_CUSTOM_SYNC` - corresponds to `custom-sync-primitives`24//25// Some more information about this header can additionally be found at26// <https://docs.wasmtime.dev/stability-platform-support.html>.27"""2829[defines]30has_virtual_memory = 'WASMTIME_VIRTUAL_MEMORY'31has_native_signals = 'WASMTIME_NATIVE_SIGNALS'32has_custom_sync = 'WASMTIME_CUSTOM_SYNC'333435