netraffic
netraffic copied to clipboard
fix(deps): update rust crate pcap to v2
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
Added
- Add
want_pktap
onCapture<Inactive>
for Mac OS.
v2.0.0
Changed
- Rust Edition is now
2021
. - MSRV is now
1.63.0
.
v1.3.0
Added
- Binding for
pcap_loop
added. It can be accessed via thefor_each
call on Activated captures.
v1.2.0
Added
-
capture-stream
support added for Windows.
v1.1.0
Added
-
lending-iter
UNSTABLE feature that introduces lending iterator using GATs.
Changed
- Examples in the docs have been fixed.
v1.0.0
Changed
- Public API declared stable.
v0.11.0
Added
-
SendQueue::queue_sg()
can add scattered packets, as a slice ofstd::io::IoSlice
s, toSendQueue
s.
Changed
- Rename
sendqueue::Sync
tosendqueue::SendSync
to avoid collision withSync
in std's prelude. - Build script will fall back to
pkg-config
if available andLIBPCAP_LIBDIR
hasn't been explicitly set.
v0.10.1
Changed
- MSRV is now
1.46.0
.
v0.10.0
Added
- doc will now include all features.
- Support for sendqueues on Windows.
-
PacketStream::capture_mut
to still be able to inject packets when usingPacketStream
. -
Capture::iter()
that return an iterator that use a codec likeCapture::stream()
. -
Packet<Dead>::dead_with_precision
to enable creating a pcap with nanosecond precision. -
flags
field toDevice
.
Removed
-
BpfProgram
no longer haveClone
implementation see #261
Changed
- MSRV is now
1.41.0
. -
PacketStream
has been moved from modstream
to theroot
of the crate. -
PacketCodec
has been moved from modstream
to theroot
of the crate. -
PacketCodec::decode()
no longer returns aResult
. -
PacketCodec::Type
has been renamed toPacketCodec::Item
. -
Device::lookup
now returnsResult<Option<Device>, Error>
rather thanResult<Device, Error>
.Ok(None)
means that the lookup succeeded, but no suitable devices were available. This is consistent with libpcap. -
Capture
andSavefile
no longer implement theSync
trait. The underlyinglibpcap
library does not promise thread-safe access for the same capture object from multiple threads. - Switched from
winapi
towindows-sys
for Windows builds.windows-sys
requires rustc 1.46.0. -
Capture::next
have been renamenext_packet
to avoid any confusion withIterator::next
.
Removed
- mod
stream
is no longer public. -
docs-rs
feature. -
full
feature. -
stream::SelectableFd
andstream::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.