typst-template 0.1.1

Generate PDFs with Typst straight from your Rust types: derive Typst inputs from structs and render templates, on a reusable world for cheap repeated generation.
Documentation
1
2
3
4
5
6
7
8
9
use typst::foundations::Value;

use crate::ToValue;

impl ToValue for uuid::Uuid {
    fn into_value(self) -> Value {
        Value::Str(self.to_string().into())
    }
}