Skip to content

Commit

Permalink
Update CHANGELOG and Cargo.toml for v0.2.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerkindt committed May 3, 2021
1 parent f3503b5 commit 4fc11b8
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<Asn>` which is now represented as `Model<Asn<Unresolved>>` and `Model<Asn<Resolved>>`.
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "asn1rs"
version = "0.2.1"
version = "0.2.2"
authors = ["Michael Watzko <[email protected]>"]
edition = "2018"
description = "ASN.1 to Rust, Protobuf and SQL compiler/code generator. Supports ASN.1 UPER"
Expand Down Expand Up @@ -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"] }
Expand Down
4 changes: 2 additions & 2 deletions asn1rs-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "asn1rs-macros"
version = "0.2.1"
version = "0.2.2"
authors = ["Michael Watzko <[email protected]>"]
edition = "2018"
description = "Macros for asn1rs"
Expand All @@ -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"
2 changes: 1 addition & 1 deletion asn1rs-model/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "asn1rs-model"
version = "0.2.1"
version = "0.2.2"
authors = ["Michael Watzko <[email protected]>"]
edition = "2018"
description = "Rust, Protobuf and SQL model definitions for asn1rs"
Expand Down

0 comments on commit 4fc11b8

Please sign in to comment.