Crate marine_rs_sdk_main[−][src]
Expand description
The main part of Fluence backend SDK. Contains export_allocator
, logger
and result
modules.
Macros
debug_log | |
module_manifest |
Structs
WasmLoggerBuilder | The Wasm logger builder. |
Constants
MANIFEST_SECTION_NAME | |
VERSION_SECTION_NAME | |
WASM_LOG_ENV_NAME | By default, logger will be initialized with log level from this environment variable. |
Functions
add_object_to_release | |
allocate⚠ | Allocates memory area of specified size and type and returns its address. The allocated memory region is intended to be use as a Vec. |
get_result_ptr⚠ | |
get_result_size⚠ | |
release_objects⚠ | |
set_result_ptr⚠ | |
set_result_size⚠ |
Type Definitions
TargetMap | Mapping from logging namespace string to its bitmask. TODO: use i64 for bitmask when wasmpack/bindgen issue with i64 is fixed. Currently, i64 doesn’t work on some versions of V8 because log_utf8_string function isn’t marked as #[wasm_bindgen]. In result, TS/JS code throws ‘TypeError’ on every log. |