- Rust 1.76+
- Clang/LLVM
pkg-config
- OpenSSL (libcrypto) (
libssl-dev
in Debian 10) - LibLZMA (
liblzma-dev
in Debian 10) - Nettle (
nettle-dev
in Debian 10)
And you need a PostgreSQL server. You will need to deploy one on your device.
- Install both build and runtime dependencies
- Spin up the PostgreSQL server, it's recommended to create a offline database:
createdb <database_name>
; for details on how to configure a offline database, please refer to the full setup guide - Type
cargo install sqlx-cli
- Execute
export DATABASE_URL="postgres://localhost/<database_name>"
- Execute
sqlx migrate run
- Run
cargo build --release
PostgreSQL server is required when building because the compiler will check if the SQL statements are semantically correct.
- Download or build
p-vector
- You will need a signing key for your repository, you can generate a new one using
gpg --gen-key
orp-vector gen-key
- Open
config.toml
in your favorite text editor and adapt the configurations to your needs - Save the configuration to somewhere (e.g.
/etc/p-vector/config.toml
) - Start the PostgreSQL server if not already done so
- Run
p-vector --config <path/to/config.toml> full
to start the first scan