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:
Markus Unterwaditzer
2025-06-19 23:17:53 +02:00
committed by Will Greenberg
parent 300215206c
commit e320874854
3 changed files with 6608 additions and 6608 deletions
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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
View File
File diff suppressed because one or more lines are too long