Skip to main content
whatwaf is available both as a command-line tool and as a Rust library. Choose the installation method that fits your use case.

CLI installation

Install whatwaf as a command-line tool using Cargo:
1

Install Rust

If you don’t have Rust installed, get it from rustup.rs.
2

Install whatwaf

cargo install whatwaf
This downloads and compiles the latest version from crates.io.
3

Verify installation

Check that whatwaf is installed correctly:
whatwaf --version
You can also list all detectable WAFs:
whatwaf --list

Library installation

Add whatwaf to your Rust project as a dependency:
1

Add dependency

Use Cargo to add whatwaf to your project:
cargo add whatwaf
Or manually add it to your Cargo.toml:
Cargo.toml
[dependencies]
whatwaf = "1.9"
2

Import in your code

Import the necessary types and functions:
use whatwaf::{scan_url, ScanConfig};

System requirements

  • Rust 2024 edition or later
  • Internet connectivity for HTTP requests to target sites

Next steps

Quick start

Get started with your first WAF scan

CLI reference

Explore all CLI commands and options

Build docs developers (and LLMs) love