From 4fc11b8a209e7b5c04c980081b9a827538839e1b Mon Sep 17 00:00:00 2001 From: Michael Watzko Date: Mon, 3 May 2021 17:48:01 +0200 Subject: [PATCH] Update CHANGELOG and Cargo.toml for v0.2.2 release --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ Cargo.toml | 6 +++--- asn1rs-macros/Cargo.toml | 4 ++-- asn1rs-model/Cargo.toml | 2 +- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7229302f..bb57674b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +# 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) `SIZE` without a range value. +- Fix `ProtobufWriter` on slices +- Fix clippy v1.51 remarks. +- Fix `rust_variant_name` and `rust_struct_or_enum_name` for two consecutively upper case letters. +- Fix ` rust_constant_name` not inserting _ around numbers. + +### Added +- Lots of regression tests for utility functions. +- Regression tests for `ProtobufWriter` on slices. +- Basic support for `DEFAULT` (for `INTEGER`, *`String`, `BOOLEAN`, `ENUMERATED` and some tuple/transparent types) +- Parsing (and ignoring) of `WITH COMPONENTS` constraints +- Resolving symbols across multiple module descriptions. +- Support ASN `NULL` type + +### 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_type` instead of `::clone` & `RustType::into_inner_type`). + +### Removed +- **Legacy** protobuf and uper codegen + # Version 0.2.1 (2021-03-22) This release refactors `Model` which is now represented as `Model>` and `Model>`. diff --git a/Cargo.toml b/Cargo.toml index 21e7e9dd..3c59c270 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "asn1rs" -version = "0.2.1" +version = "0.2.2" authors = ["Michael Watzko "] edition = "2018" description = "ASN.1 to Rust, Protobuf and SQL compiler/code generator. Supports ASN.1 UPER" @@ -44,8 +44,8 @@ futures = { version = "0.3.4", optional = true } bytes = { version = "0.5.4", optional = true } # feature asn1rs-* -asn1rs-model = { version = "0.2.1", path = "asn1rs-model", optional = true } -asn1rs-macros = { version = "0.2.1", path = "asn1rs-macros", optional = true } +asn1rs-model = { version = "0.2.2", path = "asn1rs-model", optional = true } +asn1rs-macros = { version = "0.2.2", path = "asn1rs-macros", optional = true } [dev-dependencies] syn = {version = "1.0.28", features = ["full", "visit"] } diff --git a/asn1rs-macros/Cargo.toml b/asn1rs-macros/Cargo.toml index 410e83ec..81ac9b2c 100644 --- a/asn1rs-macros/Cargo.toml +++ b/asn1rs-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "asn1rs-macros" -version = "0.2.1" +version = "0.2.2" authors = ["Michael Watzko "] edition = "2018" description = "Macros for asn1rs" @@ -20,6 +20,6 @@ debug-proc-macro = [] [dependencies] -asn1rs-model = { version = "0.2.1", path = "../asn1rs-model" } +asn1rs-model = { version = "0.2.2", path = "../asn1rs-model" } syn = {version = "1.0.17", features = ["full"] } quote = "1.0.3" diff --git a/asn1rs-model/Cargo.toml b/asn1rs-model/Cargo.toml index 684b0b99..92719826 100644 --- a/asn1rs-model/Cargo.toml +++ b/asn1rs-model/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "asn1rs-model" -version = "0.2.1" +version = "0.2.2" authors = ["Michael Watzko "] edition = "2018" description = "Rust, Protobuf and SQL model definitions for asn1rs"