#typst #derive #structs #into-value

macro derive_typst_intoval

Derive typst::IntoValue for structs

2 unstable releases

0.2.1 May 12, 2024
0.2.0 May 12, 2024
0.1.0 May 11, 2024

#1768 in Procedural macros

Download history 1/week @ 2024-05-27 16/week @ 2024-07-01 2/week @ 2024-07-15 7/week @ 2024-07-22 30/week @ 2024-07-29 13/week @ 2024-08-26 34/week @ 2024-09-02 20/week @ 2024-09-09

67 downloads per month
Used in typst-as-lib

MIT/Apache

9KB
135 lines

derive_typst_intoval CI (Docs.rs) (Crates.io status)

A small derive macro to derive IntoValue for structs. I mainly use it myself to pack up the data for typst's inputs.

FAQ

  • What about enums?

Status

Maintained.

Contributing

I'd love contributions, comments, praise, criticism... You could open an issue or a pull request.

CoC

Wherever applicable, this project follows the rust code of conduct.

Dependencies

~58MB
~837K SLoC