24 releases (15 breaking)

new 0.16.0 Jan 7, 2025
0.15.0 Dec 19, 2024
0.14.2 Nov 21, 2024
0.7.2 Mar 3, 2024
0.6.1 Nov 17, 2023

#246 in Compression

Download history 165/week @ 2024-09-11 64/week @ 2024-09-18 214/week @ 2024-09-25 11/week @ 2024-10-02 5/week @ 2024-10-09 73/week @ 2024-11-06 49/week @ 2024-11-13 136/week @ 2024-11-20 4/week @ 2024-11-27 4/week @ 2024-12-04 5/week @ 2024-12-11 102/week @ 2024-12-18

111 downloads per month

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–21MB
~324K SLoC