Crates.io | hifa_yaserde_derive |
lib.rs | hifa_yaserde_derive |
version | |
source | src |
created_at | 2024-05-07 05:11:52.510683+00 |
updated_at | 2025-04-24 20:25:36.602725+00 |
description | Serialization and deserialization macros |
homepage | https://github.com/hifa-lang/yaserde |
repository | https://github.com/hifa-lang/yaserde |
max_upload_size | |
id | 1231838 |
Cargo.toml error: | TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Yet Another Serializer/Deserializer specialized for XML
This is a modified version of the project in media-io/yaserde.
This library will support XML de/ser-ializing with all specific features.
Any type can define a custom deserializer and/or serializer. To implement it, define the implementation of YaDeserialize/YaSerialize
impl YaDeserialize for MyType {
fn deserialize<R: Read>(reader: &mut hifa_yaserde::de::Deserializer<R>) -> Result<Self, String> {
// deserializer code
}
}
impl YaSerialize for MyType {
fn serialize<W: Write>(&self, writer: &mut hifa_yaserde::ser::Serializer<W>) -> Result<(), String> {
// serializer code
}
}