Closed 6d7a closed 3 months ago
Thank you for your PR! This all looks good to me, but I don't see mention of why the JER codec is replacing hyphens with underscores, can you explain that part?
Sure. That conversion is a requirement of JER itself. From the JER spec: "An ASN.1 identifier is also a valid JavaScript identifier name if and only if it does not contain any hyphens. This makes the conversion rule simple: convert any hyphen into an underscore"
This is related to compiler issue #6.
Text-based encoding rules use type names in their encoding of ASN.1 types. The type names in
rasn
bindings may not be the same as in the original spec. Certain type names - for example those that contain hyphens - are not acceptable as identifiers in rust, at all. This PR adds a newidentifier
annotation to retain the original names inrasn
bindings.