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
Download history 755/week @ 2024-03-14 636/week @ 2024-03-21 407/week @ 2024-03-28 592/week @ 2024-04-04 1022/week @ 2024-04-11 716/week @ 2024-04-18 689/week @ 2024-04-25 1027/week @ 2024-05-02 1112/week @ 2024-05-09 1002/week @ 2024-05-16 1130/week @ 2024-05-23 1232/week @ 2024-05-30 1788/week @ 2024-06-06 1545/week @ 2024-06-13 1019/week @ 2024-06-20 1065/week @ 2024-06-27

5,711 downloads per month
Used in 5 crates

MIT license

5KB

gtmpl_derive   Latest Version

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
~38K SLoC