Skip to content

Commit 9791c75

Browse files
committed
Update CHANGELOG and Cargo.toml for v0.2.1 release
1 parent d93d270 commit 9791c75

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# Version 0.2.1 (2021-03-22)
2+
3+
This release refactors `Model<Asn>` which is now represented as `Model<Asn<Unresolved>>` and `Model<Asn<Resolved>>`.
4+
This change allows Value-References in SIZE and RANGE constraints (see [gh-50](https://github.com/kellerkindt/asn1rs/issues/50) [gh-49](https://github.com/kellerkindt/asn1rs/issues/49)) without a failable `to_rust()` converter.
5+
6+
### Fixes
7+
- No longer choke on empty `SEQUENCE` definitions (see [gh-44](https://github.com/kellerkindt/asn1rs/issues/44))
8+
9+
### Added
10+
- Parsing and resolving Value-References in SIZE and RANGE constraints (see [gh-50](https://github.com/kellerkindt/asn1rs/issues/50) [gh-49](https://github.com/kellerkindt/asn1rs/issues/49))
11+
12+
### Changes
13+
- **BREAKING**: `Model::try_from(Tokenizer)` now returns `Model<Asn<Unresolved>>`. To convert to rust (`Model::<Asn<Resolved>>::to_rust(&self) -> Model<Rust>`) the fallible function `Model::<Asn<Unresolved>>::try_resolve(&self) -> Model<Asn<Resolved>>` must be called first.
14+
15+
```rust
16+
let model_rust = Model::try_from(asn_tokens)
17+
.expect("Failed to parse tokens")
18+
.try_resolve() <--------------+--- new
19+
.expect("Failed to resolve at least one value reference") <---+
20+
.to_rust();
21+
```
22+
123
# Version 0.2.0 (2021-02-03)
224

325
This release includes a lot of refactoring and new features.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "asn1rs"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Michael Watzko <[email protected]>"]
55
edition = "2018"
66
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 }
4444
bytes = { version = "0.5.4", optional = true }
4545

4646
# feature asn1rs-*
47-
asn1rs-model = { version = "0.2.0", path = "asn1rs-model", optional = true }
48-
asn1rs-macros = { version = "0.2.0", path = "asn1rs-macros", optional = true }
47+
asn1rs-model = { version = "0.2.1", path = "asn1rs-model", optional = true }
48+
asn1rs-macros = { version = "0.2.1", path = "asn1rs-macros", optional = true }
4949

5050
[dev-dependencies]
5151
syn = {version = "1.0.28", features = ["full", "visit"] }
@@ -70,4 +70,4 @@ path = "benches/bitbuffer.rs"
7070
required-features = ["legacy_bit_buffer"]
7171

7272
[package.metadata.docs.rs]
73-
all-features = true
73+
all-features = true

asn1rs-macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "asn1rs-macros"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Michael Watzko <[email protected]>"]
55
edition = "2018"
66
description = "Macros for asn1rs"
@@ -20,6 +20,6 @@ debug-proc-macro = []
2020

2121

2222
[dependencies]
23-
asn1rs-model = { version = "0.2.0", path = "../asn1rs-model" }
23+
asn1rs-model = { version = "0.2.1", path = "../asn1rs-model" }
2424
syn = {version = "1.0.17", features = ["full"] }
25-
quote = "1.0.3"
25+
quote = "1.0.3"

asn1rs-model/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "asn1rs-model"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Michael Watzko <[email protected]>"]
55
edition = "2018"
66
description = "Rust, Protobuf and SQL model definitions for asn1rs"

0 commit comments

Comments
 (0)