Crate facet_xdr_legacy

Crate facet_xdr_legacy 

Source
Expand description

§facet-xdr-legacy

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

§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

§Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

AWS Zed Depot

…without whom this work could not exist.

§Special thanks

The facet logo was drawn by Misiasart.

§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