| Crates.io | feanor-serde |
| lib.rs | feanor-serde |
| version | 0.1.5 |
| created_at | 2025-08-20 19:27:10.623994+00 |
| updated_at | 2025-09-08 13:53:01.574392+00 |
| description | A library extending serde by some utilities for working with DeserializeSeeds |
| homepage | https://github.com/FeanorTheElf/feanor-serde |
| repository | https://github.com/FeanorTheElf/feanor-serde |
| max_upload_size | |
| id | 1803880 |
| size | 57,449 |
This is a tiny library that provides some features to work with serde, in particular [serde::de::DeserializeSeed]s.
I require these, since feanor-math and libraries building on it often need to serialize types that only exist as associated to some master object - e.g. ring elements, which belong to a ring.
Hence, these can only be serialized and deserialized when given access to the master object, and thus must use [serde::de::DeserializeSeed].
Unfortunately, while serde makes it very convenient to implement [serde::Deserialize], not much utilities are provided for [serde::de::DeserializeSeed].
This library is a very small set of such utilities.