#content #oma #module #oma-contents

oma-contents

APT Contents metadata handling library

26 releases (16 breaking)

Uses new Rust 2024

new 0.17.1 Apr 10, 2025
0.17.0 Mar 3, 2025
0.16.0 Jan 7, 2025
0.15.0 Dec 19, 2024
0.6.1 Nov 17, 2023

#523 in Unix APIs

28 downloads per month
Used in 2 crates (via libpfu-fixers)

MIT license

20KB
418 lines

oma-contents

The oma-contents crate provides functionality to parse and search contents files from Debian repositories.

Modules

  • parser: Functions for parsing lines from contents files, extracting file paths and associated packages.
  • searcher: Provides functions to search through contents files, supporting various compression formats and search modes.

Features

  • Supports multiple compression formats: Zstandard (.zst), LZ4 (.lz4), and Gzip (.gz).
  • Provides multiple search modes:
    • Provides: Search for packages that provide a specific file.
    • Files: Search for files provided by a specific package.
    • ProvidesSrc: Search source packages that provide a specific file.
    • FilesSrc: Search for files provided by a specific source package.
    • BinProvides: Search for binary packages that provide a specific file.
    • BinFiles: Search for files provided by a specific binary package.
  • Utilizes parallel processing for efficient searching.
  • Supports both ripgrep-based and pure Rust search implementations.

Dependencies

~11–22MB
~351K SLoC