siryul 0.8.7
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
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");
- Registered by Cameron Ross
- 0.8.7 released 3 months ago
- Herringway/siryul
- github.com/Herringway/siryul
- BSL-1.0
- Copyright © 2022, Cameron
- Authors:
- 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 - Download Stats:
-
-
0 downloads today
-
2 downloads this week
-
6 downloads this month
-
245 downloads total
-
- Score:
- 0.9
- Short URL:
- siryul.dub.pm