serde_builder

Crates.ioserde_builder
lib.rsserde_builder
version0.2.0
sourcesrc
created_at2023-07-12 13:39:36.426832
updated_at2023-07-14 17:05:08.969466
descriptionserde extension to build de/serialization algorithms for types using a builder pattern
homepage
repositoryhttps://github.com/JohnTheCoolingFan/serde_builder
max_upload_size
id914515
size33,620
(JohnTheCoolingFan)

documentation

https://docs.rs/serde_builder

README

serde_builder

An add-on to serde that aims to provide an alternative to derive using a builder pattern instead

At the time this is a proof of concept. To see how the usage looks, run simple_de and simple_ser examples and look at their code. Additionally, you can check the documentation on docs.rs to see the api fully

Theoretically, deserialization may fail due to wrong field names being provided to deserializer. If this happens, enable leaking feature, which supplies correct field names at expense of leaking memory through Box::leak

TODO list:

  • Enum de/serialization
  • Transformations along with checks
  • Defaults dependent on other values
  • Become on-par in customizability with serde derive
Commit count: 44

cargo fmt