[][src]Crate fluence_sdk_main

The main part of Fluence backend SDK. Contains export_allocator, logger and result modules.

Structs

CallParameters

This struct contains parameters that would be accessible by Wasm modules.

SecurityTetraplet

Describes an origin that set an argument.

WasmLoggerBuilder

The Wasm logger builder.

Constants

WASM_LOG_ENV_NAME

By default, logger will be initialized with log level from this environment variable.

Functions

allocate

Allocates memory area of specified size and returns its address. Returns 0 if supplied size is too long.

deallocate

Deallocates memory area for provided memory pointer and size. Does nothing if supplied size is too long.

get_result_ptr
get_result_size
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.