Skip to content

An APT/dpkg repository metadata generator (RIIR)

Notifications You must be signed in to change notification settings

AOSC-Dev/p-vector-rs

Folders and files

NameName
Last commit message
Last commit date
Dec 11, 2024
Oct 17, 2024
Oct 17, 2024
Jun 17, 2024
Mar 24, 2025
Oct 17, 2024
Oct 17, 2024
Oct 6, 2023
Mar 24, 2025
Mar 24, 2025
Dec 10, 2024
Aug 22, 2022
Aug 22, 2022
Dec 10, 2024

Repository files navigation

p-vector-rs

Build Dependencies

  • Rust 1.80+
  • Clang/LLVM
  • pkg-config

Runtime Dependencies

  • OpenSSL (libcrypto) (libssl-dev in Debian 10)
  • LibLZMA (liblzma-dev in Debian 10)
  • Nettle (nettle-dev in Debian 10)
  • Redis or Redis protocol-compatible server

And you need a PostgreSQL server. You will need to deploy one on your device.

Building Instructions

  1. Install both build and runtime dependencies
  2. 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
  3. Type cargo install sqlx-cli
  4. Execute export DATABASE_URL="postgres://localhost/<database_name>"
  5. Execute sqlx migrate run
  6. Run cargo build --release

PostgreSQL server is required when building because the compiler will check if the SQL statements are semantically correct.

Setup Instructions

  1. Download or build p-vector
  2. You will need a signing key for your repository, you can generate a new one using gpg --gen-key or p-vector gen-key
  3. Open config.toml in your favorite text editor and adapt the configurations to your needs
  4. Save the configuration to somewhere (e.g. /etc/p-vector/config.toml)
  5. Start the PostgreSQL server if not already done so
  6. Run p-vector --config <path/to/config.toml> full to start the first scan