Closed ljbade closed 8 months ago
@ljbade : Thanks for reporting this. I think it's possible to fix this easily in the code base. Also will take into considerations IA5String
suggestion.
@ljbade : This looks more like an error in codec, can you please post the full generated structure, so that I can add it as a test case.
Implemented in #104 and also added a quick test in this file. You may want to try this with master and if it works for you, you can close this issue.
This is available now in crate version 0.6.0
.
The 3GPP LPP specification uses a number of
UTCTime
fields.Currently after running
hampi-rs-asn1c
you get a Rust file that can't compile due to errors like:A quick fix is to replace all instances of
UTCTime
withUTF8String
since time is just a formatted string.It would be useful if the
asn
macro recognisedUTCTime
as a character string in https://github.com/gabhijit/hampi/blob/master/codecs_derive/src/per/mod.rs#L34I think you should also add
IA5String
in there too since it is just a superset ofPrintable/VisibleString
types, as well asNumericString