Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/examples/min-platform/embedding/cbindgen.toml
2450 views
1
language = "C"
2
include_guard = "_WASMTIME_PLATFORM_H"
3
include_version = true
4
cpp_compat = true
5
6
header = """
7
// Platform support for Wasmtime's `no_std` build.
8
//
9
// This header file is what Wasmtime will rely on when it does not otherwise
10
// have support for the native platform. This can happen with `no_std` binaries
11
// for example where the traditional Unix-or-Windows implementation is not
12
// suitable.
13
//
14
// Embedders are expected to implement the symbols defined in this header file.
15
// These symbols can be defined either in C/C++ or in Rust (using
16
// `#[unsafe(no_mangle)]`).
17
//
18
// Note that there are some `#define`s here which can be added before this
19
// header file is included to indicate how Wasmtime was built. This corresponds
20
// to the `wasmtime` crate's Cargo features where if the feature is disabled
21
// then the symbols will not be required.
22
//
23
// * `WASMTIME_SIGNALS_BASED_TRAPS` - corresponds to `signals-based-traps`
24
// * `WASMTIME_CUSTOM_SYNC` - corresponds to `custom-sync-primitives`
25
//
26
// Some more information about this header can additionally be found at
27
// <https://docs.wasmtime.dev/stability-platform-support.html>.
28
"""
29
30
[defines]
31
has_virtual_memory = 'WASMTIME_VIRTUAL_MEMORY'
32
has_native_signals = 'WASMTIME_NATIVE_SIGNALS'
33
has_custom_sync = 'WASMTIME_CUSTOM_SYNC'
34
35