siryul 0.8.15
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
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");
- 0.8.15 released 6 months ago
- Herringway/siryul
- github.com/Herringway/siryul
- BSL-1.0
- Copyright © 2022, Cameron
- Authors:
- Sub packages:
- siryul:std_data_json
- Dependencies:
- dyaml
- Versions:
-
0.8.15 2024-Jun-30 0.8.14 2024-Jun-05 0.8.13 2024-Apr-08 0.8.12 2023-Dec-27 0.8.11 2023-Aug-21 - Download Stats:
-
-
0 downloads today
-
1 downloads this week
-
2 downloads this month
-
423 downloads total
-
- Score:
- 0.9
- Short URL:
- siryul.dub.pm