deboa-fory

Crates.iodeboa-fory
lib.rsdeboa-fory
version0.1.3
created_at2025-11-08 18:07:59.109197+00
updated_at2025-12-09 18:45:00.496663+00
descriptionApache Fory serializer support for Deboa
homepagehttps://github.com/ararog/deboa
repositoryhttps://github.com/ararog/deboa
max_upload_size
id1923111
size60,911
ararog (ararog)

documentation

README

deboa-fory

Apache Fory serializer support for Deboa

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::new();

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?;

Features

  • Fory serializer
  • Fory deserializer

License

MIT

Commit count: 14

cargo fmt