asn1rs v0.2.2
Version 0.2.2 (2021-05-03)
This release includes a lot of refactoring and new features. With these changes, it is now possible to use the following ASN.1 standard:
- 🎉
itu-t(0) identified-organization(4) etsi(0) itsDomain(5) wg1(1) en(302637) denm(1) version(2)(DENM)
Fixes
- Properly parse (extensible)
SIZEwithout a range value. - Fix
ProtobufWriteron slices - Fix clippy v1.51 remarks.
- Fix
rust_variant_nameandrust_struct_or_enum_namefor two consecutively upper case letters. - Fix
rust_constant_namenot inserting _ around numbers.
Added
- Lots of regression tests for utility functions.
- Regression tests for
ProtobufWriteron slices. - Basic support for
DEFAULT(forINTEGER, *String,BOOLEAN,ENUMERATEDand some tuple/transparent types) - Parsing (and ignoring) of
WITH COMPONENTSconstraints - Resolving symbols across multiple module descriptions.
- Support ASN
NULLtype
Changes
- Generate constants besides structs. This has the advantage that constants are clearly visible.
- Performance improvement while converting the Model to Rust: Do not allocating structs that are thrown away anyway (call
RustType::as_inner_typeinstead of::clone&RustType::into_inner_type).
Removed
- Legacy protobuf and uper codegen