6 releases
| 0.1.5 | Mar 1, 2026 |
|---|---|
| 0.1.4 | Feb 1, 2026 |
| 0.1.3 | Dec 9, 2025 |
| 0.1.2 | Nov 13, 2025 |
#20 in #serializer
290KB
5K
SLoC
deboa-fory
Apache Fory serializer support for Deboa
Features
- Fory serializer
- Fory deserializer
Install
Either run from command line:
cargo add deboa-fory
Or add to your Cargo.toml:
deboa-fory = "0.0.1"
Usage
use deboa_fory::{ForyRequestBuilder, ForyResponse};
use deboa::{errors::DeboaError, request::post, Deboa};
use fory::{Fory, ForyObject};
#[derive(ForyObject)]
struct Person {
name: String,
age: u8,
}
let mut fory = Fory::default();
let _ = fory.register::<Person>(1);
let mut client = Deboa::default();
let person = Person {
name: "John Doe".to_string(),
age: 30,
};
let request = post("http://localhost:8080/persons")?
.body_as_fory(&fory, person)?;
let response: Person = request
.send_with(&mut client)
.await?
.body_as_fory(&fory)
.await?;
License
MIT
Dependencies
~19–30MB
~477K SLoC