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

no-std arch-pkg-text

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

17 releases (9 breaking)

Uses new Rust 2024

new 0.9.0 Mar 21, 2025
0.7.3 Mar 1, 2025

#2 in #desc

Download history 254/week @ 2025-02-04 324/week @ 2025-02-11 396/week @ 2025-02-18 443/week @ 2025-02-25 62/week @ 2025-03-04 8/week @ 2025-03-11

1,029 downloads per month

MIT license

165KB
3.5K 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
~34K SLoC