Rust SDK for Stellar XDR.
This repository contains code that is in early development, incomplete, not tested, and not recommended for use. The API is unstable, experimental, and is receiving breaking changes frequently.
Include in your toml:
toml
stellar-xdr = { git = "https://github.com/stellar/rs-stellar-xdr", rev = "..." }
The crate has two features and three tiers of functionality:
std
– The std feature provides all functionality (types, encode, decode), and is the default feature set.alloc
– The alloc feature uses Box
and Vec
types for recursive references and arrays, and is automatically enabled if the std feature is enabled. The default global allocator is used. Support for a custom allocator will be added in [#39]. No encode or decode capability exists, only types. Encode and decode capability will be added in [#46].The crate has one extra feature, next
, that if enabled exposes the generated types for the next Stellar protocol version still in development.