| Crates.io | packet-strata |
| lib.rs | packet-strata |
| version | 0.2.0 |
| created_at | 2026-01-03 08:55:15.850405+00 |
| updated_at | 2026-01-20 08:16:22.333363+00 |
| description | A high-performance packet parsing library |
| homepage | https://github.com/awgn/packet-strata |
| repository | https://github.com/awgn/packet-strata |
| max_upload_size | |
| id | 2019803 |
| size | 1,054,486 |
A high-performance packet parsing library and PCAP reader for Rust.
This library is under active development. Breaking changes may occur between versions as the API evolves and stabilizes.
If you're using or experimenting with this library and encounter bugs or develop interesting features, please consider opening a pull request at https://github.com/awgn/packet-strata
This repository is organized as a Cargo workspace containing:
packet-strata-lib/ - Core packet parsing library
pcap-reader/ - Command-line PCAP file analyzer
Build the library (default):
cargo build --release
Build the entire workspace (library + pcap-reader):
cargo build --release --workspace
Build only the library:
cargo build --release -p packet-strata
Build only the pcap-reader:
cargo build --release -p pcap-reader
Add to your Cargo.toml:
[dependencies]
packet-strata = "0.1"
Note: When adding packet-strata as a dependency, only the library will be built. The pcap-reader binary is excluded from default builds and won't be compiled unless explicitly requested with cargo build --workspace or cargo build -p pcap-reader.
# Basic usage
cargo run -p pcap-reader -- -p path/to/file.pcap
# With statistics
cargo run -p pcap-reader -- -p path/to/file.pcap --stats
# Dump packet contents
cargo run -p pcap-reader -- -p path/to/file.pcap --dump-packet
# Use full packet parsing (instead of iterator mode)
cargo run -p pcap-reader -- -p path/to/file.pcap --full-parse
Or after building:
./target/release/pcap-reader --help
Link Layer:
Network Layer:
Transport Layer:
Tunnel Protocols:
MIT
Nicola Bonelli nicola.bonelli@larthia.com