rasn 0.28.2

A safe no_std ASN.1 codec framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::str::FromStr;

use rasn::types::*;

pub struct TestDate(pub Date);

#[test]
pub fn date_from_str() {
    let test_date = TestDate(Date::from_str("2024-04-04").unwrap());
    assert_eq!(test_date.0.to_string(), "2024-04-04");
}