19 releases
Uses new Rust 2024
new 0.1.19 | Jul 3, 2025 |
---|---|
0.1.18 | Jun 30, 2025 |
0.1.10 | May 31, 2025 |
#2945 in Encoding
678 downloads per month
780KB
16K
SLoC
Logo by Misiasart
Thanks to all individual and corporate sponsors, without whom this work could not exist:
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:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~380KB