Crates.io | wion |
lib.rs | wion |
version | 0.1.0 |
source | src |
created_at | 2024-03-13 08:04:24.987223 |
updated_at | 2024-03-13 09:42:28.189217 |
description | Wasm Interface Object Notation |
homepage | |
repository | https://github.com/oovm/wion |
max_upload_size | |
id | 1171497 |
size | 22,147 |
WION is a data interchange format for WebAssembly. It is designed to be a simple, human-readable, and easy-to-write format that can be used to describe the data types and interfaces of WebAssembly modules.
Type | Values |
---|---|
Bools | true , false |
Number | 42 , -0 , 3.14 , 0xBeef |
Strings | "abc\t123" , 'x' , '\u{0}' |
Sequence | ("abc", 123) , [1, 2, 3] |
Records | {field-a: 1, field-b: "b"} |
Options | T , some(T) , none |
Results | T , success(T) , failure(E) |
Variants | tag, tag(data) , tag { data } |
Flags | +[read, write] , -[execute] |
integer: 123
, -9
decimal: 3.14
, 6.022e+23
byte: 0xBeef
, 0b1010_1010
\n
, \u{0}
r"abc\t123"
'x'
'''abc\n123'''