ValueReferences are the constants of ASN.1. With this PR constant definitions in ASN.1 are parsed. The Model<Asn> type has been split intoModel<Asn<Unresolved>> (which is now returned after parsing the Tokenizer stream) and Model<Asn<Resolved>> which is required for the .to_rust() conversion. The function Model::<Asn<Unresolved>>::try_resolve(&self) -> Result<Model<Resolved>, _> transforms the model by replacing VR-occurances with their declared value.
TODOS remaining
Add constant values to rust
Properly parse hex values and other non-integer VRs
This PR changes public API and thus is a breaking change in this regard. ~A version bump to 0.3.0 is therefore required by the semantic versioning guidelines~ No. 4: "Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable."
ValueReferences are the constants of ASN.1. With this PR constant definitions in ASN.1 are parsed. The
Model<Asn>
type has been split intoModel<Asn<Unresolved>>
(which is now returned after parsing theTokenizer
stream) andModel<Asn<Resolved>>
which is required for the.to_rust()
conversion. The functionModel::<Asn<Unresolved>>::try_resolve(&self) -> Result<Model<Resolved>, _>
transforms the model by replacing VR-occurances with their declared value.TODOS remaining
This PR changes public API and thus is a breaking change in this regard. ~A version bump to
0.3.0
is therefore required by the semantic versioning guidelines~ No. 4: "Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable."