#arch-linux #desc #pure-rust #text-format #srcinfo

no-std arch-pkg-text

Pure Rust library to parse Arch Linux packages' structured text formats

11 releases (6 breaking)

new 0.6.0 Feb 18, 2025
0.5.0 Feb 17, 2025
0.4.2 Feb 17, 2025
0.3.0 Feb 15, 2025
0.0.0 Feb 8, 2025

#745 in Parser implementations

Download history 282/week @ 2025-02-05 556/week @ 2025-02-12

838 downloads per month

MIT license

140KB
3K SLoC

arch-pkg-text

Pure Rust library to parse Arch Linux packages' structured text formats. "Pure Rust" means not needing libalpm.

Why?

Relying on libalpm has 2 limitations:

  • The program would only work on Arch Linux.
  • Every time libalpm updates, the program would need to be recompiled. And since Arch Linux is rolling release, libalpm would update frequently, forcing the program to recompile frequently.

This library aims to provide parsers for packaging related structured text formats without the above limitations.

Usage

Read the documentation.

License

MIT © Hoàng Văn Khải.

Dependencies

~0.8–6MB
~33K SLoC