15 releases

Uses new Rust 2024

new 0.1.15 Jun 15, 2025
0.1.14 Jun 4, 2025
0.1.10 May 31, 2025

#1175 in Encoding

Download history 116/week @ 2025-05-07 208/week @ 2025-05-14 544/week @ 2025-05-21 359/week @ 2025-05-28 363/week @ 2025-06-04

1,590 downloads per month

MIT/Apache

765KB
16K SLoC

Facet logo - a reflection library for Rust

Coverage Status free of syn crates.io documentation MIT/Apache-2.0 licensed Discord

Logo by Misiasart

Thanks to all individual and corporate sponsors, without whom this work could not exist:

Ko-fi GitHub Sponsors Patreon Zed Depot

facet-xdr

An XDR serializer and deserializer based on facet

Reference

XDR IDL Rust
int i32
unsigned int u32
enum Unit enum
bool bool
hyper i64
unsigned hyper u64
float f32
double f64
quadruple Not currently supported
opaque [n] [u8; N]
opaque<> Vec<u8> or &[u8]
string<> String
Fixed length array [n] [T; N]
Variable length array <> Vec<T> or &[T]
struct struct
union enum
void Unit struct or unit variant
* (optional-data) Option

License

Licensed under either of:

at your option.

Dependencies

~390KB

OSZAR »