wasmrs 0.17.0

Base host and client implementations of the wasmRS RSocket protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
  let stringified_bytes: String = std::env::args().skip(1).take(1).collect();
  println!("Decoding: {}", stringified_bytes);
  let bytes: bytes::Bytes = stringified_bytes
    .trim_start_matches('[')
    .trim_end_matches(']')
    .split(',')
    .map(|v| v.trim())
    .map(|v| v.parse::<u8>().unwrap())
    .collect();
  let frame = wasmrs::Frame::decode(bytes).unwrap();
  println!("{:#?}", frame);
}