siryul 0.8.3

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.3 2023-Jan-24
0.8.2 2023-Jan-15
0.8.1 2022-Nov-27
0.8.0 2022-Nov-15
0.7.2 2022-Oct-05
Show all 27 versions
Download Stats:
  • 0 downloads today

  • 10 downloads this week

  • 15 downloads this month

  • 207 downloads total

Score:
1.0
Short URL:
siryul.dub.pm