Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 687 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 687 Bytes

npcap-rs

Rust binding for npcap library.

Prerequisite

  • Install Npcap from here
  • Download Npcap SDK and extract the SDK in the source tree under third-party folder
  • Set the NPCAP_RS_LIB_DIR to the directory where library is installed.

Usage

You can enable these optional features for additional functionality.

  • http-parse - Parses HTTP headers
  • dns-parse - Parses DNS packets

To use the safe Rust bindings, Add the following to your Cargo.toml

[dependencies]
npcap-rs = { version = "0.1", features = [] }

Examples

cargo run --example list