stellar-xdr 27.0.0

Stellar XDR types, encoding, and decoding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![cfg(feature = "arbitrary")]

use arbitrary::{Arbitrary, Unstructured};
use stellar_xdr::ScMap;

#[test]
fn arb() {
    let bytes: Vec<u8> = (1u8..255).collect();
    let mut unstructured = Unstructured::new(&bytes);
    for _ in 1..10 {
        let x: ScMap = ScMap::arbitrary(&mut unstructured).unwrap();
        eprintln!("{x:?}");
    }
}