ystero-dev / hampi

Rust ASN.1 Toolkit
Other
44 stars 17 forks source link

NAS-5G #95

Closed linouxis9 closed 1 year ago

linouxis9 commented 1 year ago

Hi!

Is it possible to use hampi to generate ASN.1 specs for NAS 5G and then use the asn1-compiler to build a Rust datamodel that can encode/decode NAS 5G messages? If no, is there any alternative to do such things?

Thanks!!

gabhijit commented 1 year ago

@linouxis9 : Nope - Hampi is not currently (and probably ever will be) supporting NAS 5G encoding decoding. Though I started with a bit of that in another repository here. Though at the moment it's very basic and can't do much. You are welcome to extend that implementation.

linouxis9 commented 1 year ago

Thank you for your fast answer @gabhijit, and the link to your other project! I've been working on translating free5gc's Go NAS 5G Data Models generator in Rust (and obviously to output Rust) https://github.com/free5gc/nas/tree/main/internal/tools/generator, I'll be sure to keep you updated if I'm able to achieve something acceptable. Thanks!