lib: add lte-parser crate support

This'll let us convert a Gsmtap message into a fully parsed LTE
message.
This commit is contained in:
Will Greenberg
2024-01-31 17:49:56 -08:00
parent 97678bf8ca
commit 7e4511fdde
7 changed files with 113 additions and 336 deletions

View File

@@ -6,7 +6,7 @@ Rust code for parsing these messages. We're using [hampi](https://github.com/yst
## Generating the parser
To install the hampi tools, run:
To install the hampi compiler, run:
```
> cargo install asn1-compiler
@@ -15,7 +15,7 @@ To install the hampi tools, run:
To generate the parser, run:
```
> ampi-rs-asn1c --codec uper --module src/lte_rrc.rs -- specs/*
> hampi-rs-asn1c --codec uper --derive clone --derive partial-eq --derive serialize --module src/lte_rrc.rs -- specs/*
```
## Sourcing the ASN.1 files