netraffic icon indicating copy to clipboard operation
netraffic copied to clipboard

fix(deps): update rust crate pcap to v2

Open renovate[bot] opened this issue 10 months ago • 0 comments

This PR contains the following updates:

Package Type Update Change
pcap dependencies major 0.9.2 -> 2.0.0

Release Notes

rust-pcap/pcap (pcap)

v2.1.0

Compare Source

Added
  • Add want_pktap on Capture<Inactive> for Mac OS.

v2.0.0

Compare Source

Changed
  • Rust Edition is now 2021.
  • MSRV is now 1.63.0.

v1.3.0

Compare Source

Added
  • Binding for pcap_loop added. It can be accessed via the for_each call on Activated captures.

v1.2.0

Compare Source

Added
  • capture-stream support added for Windows.

v1.1.0

Compare Source

Added
  • lending-iter UNSTABLE feature that introduces lending iterator using GATs.
Changed
  • Examples in the docs have been fixed.

v1.0.0

Compare Source

Changed
  • Public API declared stable.

v0.11.0

Compare Source

Added
  • SendQueue::queue_sg() can add scattered packets, as a slice of std::io::IoSlices, to SendQueues.
Changed
  • Rename sendqueue::Sync to sendqueue::SendSync to avoid collision with Sync in std's prelude.
  • Build script will fall back to pkg-config if available and LIBPCAP_LIBDIR hasn't been explicitly set.

v0.10.1

Compare Source

Changed
  • MSRV is now 1.46.0.

v0.10.0

Compare Source

Added
  • doc will now include all features.
  • Support for sendqueues on Windows.
  • PacketStream::capture_mut to still be able to inject packets when using PacketStream.
  • Capture::iter() that return an iterator that use a codec like Capture::stream().
  • Packet<Dead>::dead_with_precision to enable creating a pcap with nanosecond precision.
  • flags field to Device.
Removed
  • BpfProgram no longer have Clone implementation see #​261
Changed
  • MSRV is now 1.41.0.
  • PacketStream has been moved from mod stream to the root of the crate.
  • PacketCodec has been moved from mod stream to the root of the crate.
  • PacketCodec::decode() no longer returns a Result.
  • PacketCodec::Type has been renamed to PacketCodec::Item.
  • Device::lookup now returns Result<Option<Device>, Error> rather than Result<Device, Error>. Ok(None) means that the lookup succeeded, but no suitable devices were available. This is consistent with libpcap.
  • Capture and Savefile no longer implement the Sync trait. The underlying libpcap library does not promise thread-safe access for the same capture object from multiple threads.
  • Switched from winapi to windows-sys for Windows builds. windows-sys requires rustc 1.46.0.
  • Capture::next have been rename next_packet to avoid any confusion with Iterator::next.
Removed
  • mod stream is no longer public.
  • docs-rs feature.
  • full feature.
  • stream::SelectableFd and stream::PacketStream::new as they were only meant to be used internally.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar Apr 21 '24 21:04 renovate[bot]