1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#![feature(crate_visibility_modifier)] #![feature(min_const_generics)] mod objects; mod printers; pub mod prelude { pub use doku_derive::*; } pub use self::{objects::*, printers::*}; pub fn to_json<Ty: TypeProvider>() -> String { JsonPrinter::new().print(&Ty::ty()) } pub fn to_json_val<Ty: TypeProvider>(_: &Ty) -> String { to_json::<Ty>() }