yamlserialized 0.3.0

YAML serialization library for dyaml. Easily serialize/deserialize structs to/from YAML.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Build Status

YAML serialization library for D:YAML. Easily serialize/deserialize structs and classes to/from YAML nodes.

How to use

import yamlserialized : deserializeInto, toYAMLNode;

struct MyStruct {
	int intField;
	string stringField;
}

MyStruct st;

st.intField = 42;
st.stringField = "Don't panic.";

// Serialize the struct to a D:YAML Node
auto node = st.toYAMLNode();

// Create a new empty struct
MyStruct st2;

// Deserialize the node into it
node.deserializeInto(st2);

Authors:Kjartan F. Kvamme

Dependencies:dyaml, dunit

Versions:
0.3.0 2017-Aug-02
0.2.0 2016-Dec-10
0.1.1 2016-Dec-10
0.1.0 2016-Dec-10
~master 2017-Aug-02
Show all 5 versions
Stats:
  • 0 downloads today

  • 15 downloads this week

  • 35 downloads this month

  • 154 downloads total