#typst #derive #structs #into-value

macro derive_typst_intoval

Derive typst::IntoValue for structs

3 releases (breaking)

0.3.0 Nov 4, 2024
0.2.1 May 12, 2024
0.2.0 May 12, 2024
0.1.0 May 11, 2024

#1599 in Procedural macros

Download history 5/week @ 2024-08-23 30/week @ 2024-08-30 27/week @ 2024-09-06 6/week @ 2024-09-13 16/week @ 2024-09-20 12/week @ 2024-09-27 5/week @ 2024-10-04 12/week @ 2024-10-11 8/week @ 2024-10-18 31/week @ 2024-10-25 244/week @ 2024-11-01 155/week @ 2024-11-08 112/week @ 2024-11-15 62/week @ 2024-11-22 146/week @ 2024-11-29

515 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

~60MB
~859K SLoC