siryul 0.5.4

A simple multi-format serialization library.


To use this package, run the following command in your project's root directory:

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.4 2019-May-28
0.5.3 2019-May-05
0.5.2 2019-Mar-24
0.5.1 2018-Dec-13
0.5.0 2018-Oct-15
Show all 12 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.0
Short URL:
siryul.dub.pm