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
1,590 downloads per month
765KB
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
~390KB