-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Description
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.
ctacke
Metadata
Metadata
Assignees
Labels
No labels