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 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 857/week @ 2024-11-11 1417/week @ 2024-11-18 1623/week @ 2024-11-25 1989/week @ 2024-12-02 1969/week @ 2024-12-09 1700/week @ 2024-12-16 270/week @ 2024-12-23 478/week @ 2024-12-30 1692/week @ 2025-01-06 1974/week @ 2025-01-13

4,427 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

~0.4–0.9MB
~19K SLoC