-
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Rasn should be capable of outputting what the ASN.1 textual encoding of a type. I think this is something that would be useful for writing modules and for debugging types. I think this should probably be able to work with just the AsnType trait, since we don't actually need to traverse the type through the codec traits.
Example
#[derive(AsnType)]
struct Foo {
member: String
}
println!("{}", rasn::text::to_string::<Foo>());
Output
Foo ::= SEQUENCE {
member UTF8String
}
Metadata
Metadata
Assignees
Labels
No labels