8 releases (4 breaking)
0.5.0 | Jun 7, 2021 |
---|---|
0.4.0 | Jan 3, 2021 |
0.3.3 | Sep 30, 2018 |
0.3.1 | Mar 29, 2018 |
0.1.0 | Nov 14, 2017 |
6,247 downloads per month
Used in 5 crates
5KB
gtmpl_derive
Derive macro for gmtpl_value
[dependencies]
gtmpl_derive = "0.4"
Usage
use gtmpl_derive::Gtmpl;
use gtmpl_value::Value;
#[derive(Gtmpl)]
struct Foo {
bar: u8
}
fn main() {
let v: Value = (Foo { bar: 23 }).into();
}
lib.rs
:
This crate provides gtmpl_value's derive macro.
use gtmpl_derive::Gtmpl;
use gtmpl_value::Value;
#[derive(Gtmpl)]
struct Foo {
bar: u8
}
let v: Value = (Foo { bar: 23 }).into();
Dependencies
~1.5MB
~40K SLoC