0.0.1-prealpha.30 • Published 3 years ago

schema-bind-from-cesar v0.0.1-prealpha.30

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Web3API Binding

Generates Web3API schema bindings for supported guest languages.

Details

Web3API uses MessagePack as a common data interchange format between languages. This allows Web3API WASM modules, authored in different langues, to be run within a single host language (JS, Rust, Python, Go, C#, C++).

MessagePack encoded data is sent between module boundaries. Decoding of the message will happen in the destination environment, using generated binding code, created by this package.

Supported Schema Types

GraphQL Schema TypeMessagePack TypeDescription
UIntuint 3232-bit unsigned integer.
UInt8uint 88-bit unsigned integer.
UInt16uint 1616-bit unsigned integer.
UInt32uint 3232-bit unsigned integer.
UInt64uint 6464-bit unsigned integer.
Intint 3232-bit signed integer.
Int8int 88-bit signed integer.
Int16int 1616-bit signed integer.
Int32int 3232-bit signed integer.
Int64int 6464-bit signed integer.
Stringfixstr or str 8/16/32UTF-8 string.
Booleanbooltrue or false stored as 1 byte.
Bytesbin 8/16/32array of 8-bit unsigned integer.
BigIntfixstr or str 8/16/32UTF-8 string.
Typefixarray or array 16/32Array of elements.
type CustomObject {  prop: Type}fixmap or map 16/32sdf

Usage

TODO