mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-10 14:53:30 -07:00
Remove PartialEq, Clone, Serialize from LTE RRC parser
Compiling telecom-parser takes 2 minutes on my machine. After removing those derives it takes 1:15. I suspect it's mostly serde though.
This commit is contained in:
committed by
Will Greenberg
parent
300215206c
commit
e320874854
@@ -18,7 +18,7 @@ pub enum InformationElementError {
|
||||
UnsupportedGsmtapType(GsmtapType),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug)]
|
||||
pub enum InformationElement {
|
||||
GSM,
|
||||
UMTS,
|
||||
@@ -28,7 +28,7 @@ pub enum InformationElement {
|
||||
FiveG,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug)]
|
||||
pub enum LteInformationElement {
|
||||
DlCcch(lte_rrc::DL_CCCH_Message),
|
||||
// This element of the enum is substantially larger than the others,
|
||||
|
||||
@@ -15,7 +15,7 @@ To install the hampi compiler, run:
|
||||
To generate the parser for LTE RRC, run:
|
||||
|
||||
```
|
||||
> rs-asn1c --codec uper --derive clone --derive partial-eq --derive serialize --module src/lte_rrc.rs -- specs/EUTRA* specs/PC5-RRC-Definitions.asn
|
||||
> rs-asn1c --codec uper --module src/lte_rrc.rs -- specs/EUTRA* specs/PC5-RRC-Definitions.asn
|
||||
```
|
||||
|
||||
## Sourcing the ASN.1 files
|
||||
|
||||
+6605
-6605
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user