#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

#1752 in Procedural macros

Download history 97/week @ 2024-11-18 97/week @ 2024-11-25 125/week @ 2024-12-02 80/week @ 2024-12-09 104/week @ 2024-12-16 29/week @ 2024-12-23 81/week @ 2024-12-30 113/week @ 2025-01-06 76/week @ 2025-01-13 145/week @ 2025-01-20 96/week @ 2025-01-27 177/week @ 2025-02-03 123/week @ 2025-02-10 123/week @ 2025-02-17 93/week @ 2025-02-24 149/week @ 2025-03-03

491 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
~819K SLoC