22 releases (13 breaking)

new 0.14.2 Nov 21, 2024
0.14.0 Sep 25, 2024
0.7.2 Mar 3, 2024
0.7.1 Dec 5, 2023
0.6.1 Nov 17, 2023

#508 in Filesystem

Download history 21/week @ 2024-07-29 381/week @ 2024-08-19 316/week @ 2024-08-26 155/week @ 2024-09-02 84/week @ 2024-09-09 125/week @ 2024-09-16 226/week @ 2024-09-23 22/week @ 2024-09-30 7/week @ 2024-10-07 118/week @ 2024-11-11

118 downloads per month

MIT license

18KB
380 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
~329K SLoC