Crate pkgsrc

source ·
Expand description

§pkgsrc

Implementation of pkg_install library and database routines in Rust.

§Goals

The initial goals are to fully support existing pkg_install packages and the files-based pkgdb, in tandem with developing pm, a Rust alternative to pkg_install and pkgin.

After that the aim is to replace the fragile and slow pkgdb backend with sqlite which should provide much faster and more reliable queries and updates.

Modules§

  • Digest hashing and validation. The Digest module is mostly a thin wrapper around the digest crate and a selection of hashes provided by the RustCrypto project, with some additional features for a pkgsrc context.
  • Module supporting the package database. WIP.
  • Handling for PKGPATH metadata and relative package directory locations.
  • Packing list parsing and generation.
  • pkg_summary(5) parsing and generation.

Structs§

  • Parse metadata contained in +* files in a package archive.

Enums§

Functions§

  • Compare package pkg against pattern pattern.