Building from source gives you full control over the binary — useful when your CPU architecture is not covered by the pre-built releases, when you want to apply custom patches, or when you are working on a fork. You will need the Rust toolchain and Git;Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lissy93/adguardian-term/llms.txt
Use this file to discover all available pages before exploring further.
make is optional but convenient.
Prerequisites
Install Rust via rustup
The official installer sets up Follow the on-screen prompts and restart your shell (or run
cargo, rustc, and rustup in one step:source "$HOME/.cargo/env") so that cargo is on your PATH. For alternative installation methods, see the rustup documentation.Install Git
Git is required to clone the repository. Install it using your system’s package manager if it is not already present — see the Git installation guide for platform-specific instructions.
Clone and build
Compile a release binary
Cargo.toml, then links the final binary. The first build takes a few minutes; subsequent builds are faster thanks to incremental compilation.Run the binary
adguardian.exe:Makefile targets
TheMakefile at the root of the repository provides the following targets. Every target ultimately delegates to cargo — you can run the equivalent cargo command directly if make is unavailable.
| Target | What it does | Equivalent cargo command |
|---|---|---|
make / make all | Runs clean, build, test, doc, and run in sequence | — |
make run | Compiles the project (if necessary) then runs it | cargo build --all-features && cargo run |
make build | Compiles the project and all dependencies with every feature flag enabled | cargo build --all-features |
make test | Compiles the project then runs all unit tests and rustdoc tests | cargo test --all-features |
make bench | Compiles the project then executes the benchmark suite | cargo bench |
make doc | Generates HTML documentation from rustdoc comments (excludes dependency docs) | cargo doc --no-deps --all-features |
make check | Checks the source for compilation errors without producing a binary | cargo check --all-features |
make fmt | Verifies that all bin and lib files conform to the project’s rustfmt style rules | cargo fmt -- --check |
make clippy | Runs the Clippy linter and treats all warnings as errors | cargo clippy -- -D warnings |
make clean | Removes the target directory and all compiled artefacts | cargo clean |
Release binary location
Aftercargo build --release completes, the compiled binary is written to:
PATH to make adguardian available system-wide, for example: