#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

#1549 in Procedural macros

Download history 9/week @ 2024-09-18 15/week @ 2024-09-25 8/week @ 2024-10-02 12/week @ 2024-10-09 6/week @ 2024-10-16 21/week @ 2024-10-23 192/week @ 2024-10-30 188/week @ 2024-11-06 114/week @ 2024-11-13 56/week @ 2024-11-20 147/week @ 2024-11-27 91/week @ 2024-12-04 106/week @ 2024-12-11 83/week @ 2024-12-18 1/week @ 2024-12-25 97/week @ 2025-01-01

306 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