Actions
Task #6818
closedTask #6819: tracking: rust: update dependencies for 8
rust: snmp-parser 0.10.0
Effort:
Difficulty:
Label:
Description
Needs some fixes to work.
error[E0308]: mismatched types --> /home/victor/devel/suricata-tcp/rust/src/snmp/snmp.rs:131:59 | 131 | pdu_info.trap_type = Some((t.generic_trap,t.enterprise.clone(),t.agent_addr)); | ^^^^^^^^^^^^^^^^^^^^ expected `asn1_rs::Oid<'_>`, found `der_parser::Oid<'_>` | = note: `der_parser::Oid<'_>` and `asn1_rs::Oid<'_>` have similar names, but are actually distinct types note: `der_parser::Oid<'_>` is defined in crate `asn1_rs` --> /home/victor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/asn1-rs-0.6.1/src/asn1_types/oid.rs:36:1 | 36 | pub struct Oid<'a> { | ^^^^^^^^^^^^^^^^^^ note: `asn1_rs::Oid<'_>` is defined in crate `asn1_rs` --> /home/victor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/asn1-rs-0.5.2/src/asn1_types/oid.rs:36:1 | 36 | pub struct Oid<'a> { | ^^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `asn1_rs` are being used? error[E0308]: mismatched types --> /home/victor/devel/suricata-tcp/rust/src/snmp/snmp.rs:136:32 | 136 | pdu_info.vars.push(var.oid.to_owned()); | ---- ^^^^^^^^^^^^^^^^^^ expected `asn1_rs::Oid<'_>`, found `der_parser::Oid<'static>` | | | arguments to this method are incorrect | = note: `der_parser::Oid<'static>` and `asn1_rs::Oid<'_>` have similar names, but are actually distinct types note: `der_parser::Oid<'static>` is defined in crate `asn1_rs` --> /home/victor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/asn1-rs-0.6.1/src/asn1_types/oid.rs:36:1 | 36 | pub struct Oid<'a> { | ^^^^^^^^^^^^^^^^^^ note: `asn1_rs::Oid<'_>` is defined in crate `asn1_rs` --> /home/victor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/asn1-rs-0.5.2/src/asn1_types/oid.rs:36:1 | 36 | pub struct Oid<'a> { | ^^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `asn1_rs` are being used? note: method defined here --> /home/victor/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:1878:12 | 1878 | pub fn push(&mut self, value: T) { | ^^^^ For more information about this error, try `rustc --explain E0308`.
Updated by Victor Julien 9 months ago
Ah this seems to be a conflict with the locked asn1-rs version we have. If I unlock that it compiles.
Updated by Victor Julien 9 months ago
- Status changed from New to In Review
- Assignee changed from OISF Dev to Victor Julien
Updated by Victor Julien 9 months ago
- Status changed from In Review to Closed
Actions