vibe-sdlang 1.0.0-alpha.4
SDLang serialization support for vibe.d
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:
vibe.d SDLang serialization
This package provides generic vibe.data.serialization
based
serialization support for the SDLang data format. It uses
sdlang-d to parse and generate
the SDLang format.
Example:
import vibe.data.sdl : serializeSDL;
import sdlang.ast : Tag;
import std.stdio : writeln;
struct Ticket {
int id;
string title;
string[] tags;
}
void main()
{
Ticket[] tickets = [
Ticket(0, "foo", ["defect", "critical"]),
Ticket(1, "bar", ["enhancement"])
];
Tag sdl = serializeSDL(tickets);
writeln(sdl.toSDLDocument());
}
- Registered by Sönke Ludwig
- 1.0.0-alpha.4 released 8 months ago
- vibe-d/vibe-sdl
- mit
- Copyright © 2016-2018, Sönke Ludwig
- Authors:
- Dependencies:
- sdlang-d, vibe-serialization
- Versions:
-
1.0.0-alpha.4 2024-Mar-15 1.0.0-alpha.3 2018-Jul-04 1.0.0-alpha.2 2016-Aug-30 1.0.0-alpha.1 2016-Aug-25 ~master 2024-Mar-15 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
1 downloads this month
-
175 downloads total
-
- Score:
- 1.0
- Short URL:
- vibe-sdlang.dub.pm