siryul 0.8.13

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:


This package provides sub packages which can be used individually:

siryul:std_data_json - std_data_json support for siryul

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
Sub packages:
siryul:std_data_json
Dependencies:
dyaml
Versions:
0.8.13 2024-Apr-08
0.8.12 2023-Dec-27
0.8.11 2023-Aug-21
0.8.10 2023-Aug-20
0.8.9 2023-Aug-05
Show all 37 versions
Download Stats:
  • 0 downloads today

  • 2 downloads this week

  • 10 downloads this month

  • 340 downloads total

Score:
0.9
Short URL:
siryul.dub.pm