siryul 0.6.5

A simple multi-format serialization library.


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

Manual usage
Put the following dependency into your project's dependences section:

Siryul - Serialization made simple

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.8.1 2022-Nov-27
0.8.0 2022-Nov-15
0.7.2 2022-Oct-05
0.7.1 2022-Aug-08
0.7.0 2022-Jul-23
Show all 25 versions
Download Stats:
  • 4 downloads today

  • 7 downloads this week

  • 39 downloads this month

  • 184 downloads total

Score:
1.5
Short URL:
siryul.dub.pm