6 releases

0.1.5 Oct 21, 2021
0.1.4 Oct 21, 2021

#157 in #json-parser

36 downloads per month
Used in dorea

Apache-2.0

19KB
473 lines

doson

Dorea Struct Parser


lib.rs:

doson - DataValue Parser

use doson::DataValue;
use std::collections::HashMap;

DataValue::String("Hello World".to_string());
DataValue::Number(1_f64);
DataValue::Boolean(true);
DataValue::List(vec![
    DataValue::Number(3.14_f64),
]);
DataValue::Dict(HashMap::new());
DataValue::Tuple((
    Box::new(DataValue::Number(1_f64)),
    Box::new(DataValue::Number(2_f64)),
));

Dependencies

~1.8–2.8MB
~56K SLoC