#value #representation #enums #numbers #boolean #f64 #list

no-std achan

A simple & convenient representation for any value

2 unstable releases

0.2.0 Feb 10, 2024
0.1.0 Feb 10, 2024

#332 in WebAssembly

MPL-2.0 license

14KB
334 lines

achan crates.io docs.rs

This crate provides a simple & convenient representation for any value:

enum Value {
    Null,
    Boolean(bool),
    Number(f64),
    String(String),
    List(Vec<Value>),
    Map(BTreeMap<String, Value>)
}

no_std

This crate is compatible with no_std environments, requiring only the alloc crate.

serde

Support for serialising/deserialising using the serde framework can be enabled via the serde feature.

WASM Component

This crate defines and implements a WIT API when the wasm-component feature is enabled, allowing it to be embedded in WASM applications.


Dependencies

~210KB