- MSRV is now
1.64. - Binding for
pcap_breakloopadded. It can be accessed via thebreakloop_handlecall on Activated captures.
- Added
packet_header_size()for applications that need to know the size of internal typepcap_pkthdr(for instance to calculate exact send queue sizes).
- Added an implementation of
AsFdonCapture<Active>on non-Windows.
- Add
want_pktaponCapture<Inactive>for Mac OS.
- Rust Edition is now
2021. - MSRV is now
1.63.0.
- Binding for
pcap_loopadded. It can be accessed via thefor_eachcall on Activated captures.
capture-streamsupport added for Windows.
lending-iterUNSTABLE feature that introduces lending iterator using GATs.
- Examples in the docs have been fixed.
- Public API declared stable.
SendQueue::queue_sg()can add scattered packets, as a slice ofstd::io::IoSlices, toSendQueues.
- Rename
sendqueue::Synctosendqueue::SendSyncto avoid collision withSyncin std's prelude. - Build script will fall back to
pkg-configif available andLIBPCAP_LIBDIRhasn't been explicitly set.
- MSRV is now
1.46.0.
- doc will now include all features.
- Support for sendqueues on Windows.
PacketStream::capture_mutto still be able to inject packets when usingPacketStream.Capture::iter()that return an iterator that use a codec likeCapture::stream().Packet<Dead>::dead_with_precisionto enable creating a pcap with nanosecond precision.flagsfield toDevice.
BpfProgramno longer haveCloneimplementation see #261
- MSRV is now
1.41.0. PacketStreamhas been moved from modstreamto therootof the crate.PacketCodechas been moved from modstreamto therootof the crate.PacketCodec::decode()no longer returns aResult.PacketCodec::Typehas been renamed toPacketCodec::Item.Device::lookupnow 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.CaptureandSavefileno longer implement theSynctrait. The underlyinglibpcaplibrary does not promise thread-safe access for the same capture object from multiple threads.- Switched from
winapitowindows-sysfor Windows builds.windows-sysrequires rustc 1.46.0. Capture::nexthave been renamenext_packetto avoid any confusion withIterator::next.
- mod
streamis no longer public. docs-rsfeature.fullfeature.stream::SelectableFdandstream::PacketStream::newas they were only meant to be used internally.
capture-streamrequires rustc version 1.49.0 due to dependency ontokio.
- Support for device addresses.
savefile.flushsupport.
- Updated dependency
tokiofrom version 0.2 to 1.0. capture-streamrequires rustc version 1.45.0 due to dependency ontokio.
- Fix docs.rs build.
Derive(Clone)toDevicestruct (#100).- Build-time
libpcapversion detection. - Support for immediate mode.
- Const value for Linktype (#145).
- Support for BPF compile.
- Opt into Rust 2018.
- Now minimum supported rustc version is 1.40.0.
- Updated dependency from deprecated
tokio-coretotokio0.2. - Updated dependency
futuresfrom version 0.1 to 0.3. - Feature
tokiorenamed tocapture-streambecause Cargo does not allow features and dependencies to have the same name. PCAP_LIBDIRrenamed toLIBPCAP_LIBDIRto distinguish thepcapcrate from thelibpcaplibrary.- All methods that construct objects out of a
RawFdare now unsafe. - All methods that take a raw pointer are now unsafe. Some of these functions
were renamed from
newtofrom_handleto underline this.
- Feature flags
pcap-savefile-append,pcap-fopen-offline-precision(replaced by build-timelibpcapversion detection).
No Changelog entries for <= 0.7.0.