Crate facet_xdr

Source
Expand description

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 IDLRust
inti32
unsigned intu32
enumUnit enum
boolbool
hyperi64
unsigned hyperu64
floatf32
doublef64
quadrupleNot 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]
structstruct
unionenum
voidUnit struct or unit variant
* (optional-data)Option

§License

Licensed under either of:

at your option.

Enums§

XdrDeserError
Errors when deserializing from XDR bytes
XdrSerError
Errors when serializing to XDR bytes

Functions§

deserialize
Deserialize a slice of XDR bytes into any Facet type
deserialize_wip
Deserialize an XDR slice given some some Partial into a HeapValue
to_vec
Serialize any Facet type to XDR bytes