siryul 0.8.4

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.7 2023-Feb-19
0.8.6 2023-Feb-18
0.8.5 2023-Feb-15
0.8.4 2023-Feb-04
0.8.3 2023-Jan-24
Show all 31 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 3 downloads this month

  • 226 downloads total

Score:
0.9
Short URL:
siryul.dub.pm