siryul 0.5.1

A simple multi-format serialization library.


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

dub.json
dub.sdl

Siryul - Serialization made simple

Build Status Coverage Status

Supported formats

  • YAML
  • JSON

Supported platforms

  • All known

Example Usage

import siryul;

struct Data {
	uint a;
	Nullable!uint b;
	string c;
	@Optional bool d;
}

writeln(Data(1, Nullable!uint.init, "Hello world!", true).toString!YAML());
//%YAML 1.1
//---
//a: 1
//b: null
//c: Hello world!
//d: true
import siryul;

struct Data {
	uint a;
	Nullable!uint b;
	string c;
	@Optional bool d;
}

//With a document like...

//%YAML 1.1
//---
//a: 1
//b: null
//c: Hello world!

Data data = fromFile!(Data, YAML)("doc.yml");
Authors:
  • Cameron "Herringway" Ross
Dependencies:
dyaml
Versions:
0.5.1 2018-Dec-13
0.5.0 2018-Oct-15
0.4.1 2018-Mar-09
0.4.0 2017-Nov-03
0.3.0 2016-Jul-21
Show all 9 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 23 downloads total

Score:
0.3
Short URL:
siryul.dub.pm