Skip to content

Release of 0.23 broke 0.22 build #391

@Florob

Description

@Florob

The release of 0.23 seems to have broken 0.22 builds.
The specific error is

error[E0599]: no method named `to_primitive_values` found for type `pnet_base::MacAddr` in the current scope
   --> …/target/armv7-unknown-linux-gnueabihf/release/build/pnet_packet-242d82d1735b29fa/out/ethernet.rs:442:24
    |
442 |         let vals = val.to_primitive_values();
    |                        ^^^^^^^^^^^^^^^^^^^ method not found in `pnet_base::MacAddr`

After chasing the dependency chain my understanding of this is as follows:
pnet 0.22 depends on pnet_packet 0.22. This in turn depends on pnet_macros_support 0.22 and pnet_base 0.22.
pnet_macros_support however depends on pnet_base >= 0.22.
With the release of 0.23 pnet_macros_support therefore began pulling in pnet_base 0.23. This means that the ToPrimitives implementation in pnet_macros_support is now for the types defined in pnet_base 0.23, not the ones in pnet_base 0.22.

A fix would likely be releasing pnet_macro_support 0.22.1 that depends on pnet_base 0.22 instead of pnet_base >= 0.22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions