-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
913856e
commit 3e61750
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
A small derive macro to derive typst's `IntoValue` for structs. | ||
# derive_typst_intoval ![CI](https://github.com/KillTheMule/derive_typst_intoval/actions/workflows/test.yml/badge.svg) [![(Docs.rs)](https://docs.rs/derive_typst_intoval/badge.svg)](https://docs.rs/derive_typst_intoval/) [![(Crates.io status)](https://img.shields.io/crates/v/derive_typst_intoval.svg)](https://crates.io/crates/derive_typst_intoval) | ||
A small derive macro to derive `IntoValue` for structs. I mainly use it myself to pack | ||
up the data for typst's [`inputs`](https://docs.rs/typst/latest/typst/struct.LibraryBuilder.html#method.with_inputs). | ||
|
||
## FAQ | ||
|
||
- What about enums? | ||
- Derive [`Cast`](https://docs.rs/typst-macros/latest/typst_macros/derive.Cast.html). | ||
|
||
## Status | ||
|
||
Maintained. | ||
|
||
## Contributing | ||
I'd love contributions, comments, praise, criticism... You could open an | ||
[issue](https://github.com/KillTheMule/derive_typst_intoval/issues) or a [pull | ||
request](https://github.com/KillTheMule/derive_typst_intoval/pulls). | ||
|
||
## CoC | ||
|
||
Wherever applicable, this project follows the [rust code of | ||
conduct](https://www.rust-lang.org/en-US/conduct.html). |