doku 0.21.1

A framework for documenting Rust data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::prelude::*;

#[derive(Default, Serialize, Document)]
struct Ty;

printer_test! {
    "output.ty.json" => to_json(Ty),
    "output.val.json" => to_json_val(Ty),
    "output.ty.toml" => to_toml(Ty),
    "output.val.toml" => to_toml_val(Ty),
}