wion

Crates.iowion
lib.rswion
version0.1.0
sourcesrc
created_at2024-03-13 08:04:24.987223
updated_at2024-03-13 09:42:28.189217
descriptionWasm Interface Object Notation
homepage
repositoryhttps://github.com/oovm/wion
max_upload_size
id1171497
size22,147
SasakiSaki (oovm)

documentation

https://docs.rs/wion

README

Wasm Interface Object Notation

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]

Details

Number

  • integer: 123, -9

  • decimal: 3.14, 6.022e+23

  • byte: 0xBeef, 0b1010_1010

String

  • escaped: \n, \u{0}
  • raw: r"abc\t123"
  • single: 'x'
  • multi: '''abc\n123'''
Commit count: 0

cargo fmt