yamlserialized 0.2.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-yamlserialized, dunit

Versions:
0.2.0 2016-Dec-10
0.1.1 2016-Dec-10
0.1.0 2016-Dec-10
~master 2016-Dec-10
Show all 4 versions
Stats:
  • 0 downloads today

  • 2 downloads this week

  • 24 downloads this month

  • 65 downloads total