rasn 0.28.12

A safe no_std ASN.1 codec framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[test]
fn issue_218() {
    // https://github.com/librasn/rasn/issues/218
    let mut set_of = rasn::types::SetOf::new();
    set_of.insert(String::from("c"));
    set_of.insert(String::from("ab"));
    let encoding = rasn::der::encode(&set_of).unwrap();
    //                                    c          a   b
    //                                    |          |   |
    //                                    v          v   v
    assert_eq!(&encoding, &[49, 7, 12, 1, 99, 12, 2, 97, 98]);
}