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 1347/week @ 2024-07-22 1591/week @ 2024-07-29 1506/week @ 2024-08-05 1577/week @ 2024-08-12 1978/week @ 2024-08-19 2042/week @ 2024-08-26 1448/week @ 2024-09-02 1276/week @ 2024-09-09 1290/week @ 2024-09-16 1589/week @ 2024-09-23 1433/week @ 2024-09-30 1431/week @ 2024-10-07 1299/week @ 2024-10-14 2199/week @ 2024-10-21 1240/week @ 2024-10-28 1499/week @ 2024-11-04

6,247 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
~40K SLoC