bendy 0.6.1

A rust library for encoding and decoding bencode with enforced canonicalization rules.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! assert_matches {
  ($expression:expr, $pattern:pat $( if $guard:expr )?) => {
    match $expression {
      $pattern $( if $guard )? => {}
      left => panic!(
        "assertion failed: (left ~= right)\n  left: `{:?}`\n right: `{}`",
        left,
        stringify!($pattern $(if $guard)?)
      ),
    }
  }
}