Update serde compatability documentation

This commit is contained in:
Jeremy Drouillard
2021-01-21 13:21:03 -08:00
parent 6bbe0ddf9f
commit c735043c86
+5 -3
View File
@@ -53,9 +53,11 @@ When running `cargo test`, the TypeScript bindings will be exported to the file
- flatten structs/interfaces
- generate necessary imports when exporting to multiple files
## serde compatibility layer
With the `serde-compat` feature enabled, ts-rs tries parsing serde attributes.
Please note that not all serde attributes are supported yet.
## Serde Compatability
Serde representations are supported for enums and structs. The serde tags supported on enums are:
- tag & content
- untagged
## todo