49 releases (stable)

4.0.1 Sep 18, 2024
3.0.5 Mar 15, 2024
2.2.3 Dec 4, 2023
2.2.2 May 7, 2023
0.4.0 Oct 11, 2016

#25 in Unix APIs

Download history 305/week @ 2024-07-17 401/week @ 2024-07-24 755/week @ 2024-07-31 1291/week @ 2024-08-07 846/week @ 2024-08-14 803/week @ 2024-08-21 708/week @ 2024-08-28 734/week @ 2024-09-04 8509/week @ 2024-09-11 16825/week @ 2024-09-18 10802/week @ 2024-09-25 8050/week @ 2024-10-02 7292/week @ 2024-10-09 6347/week @ 2024-10-16 5853/week @ 2024-10-23 5436/week @ 2024-10-30

25,991 downloads per month
Used in 22 crates (20 directly)

GPL-3.0 license

565KB
14K SLoC

alpm.rs - rust bindings for libalpm

Latest version Documentation

alpm.rs provides complete, safe, ergonomic bindings to the libalpm API, the package management library used by pacman and other tools.

Features

  • mtree - enables the alpm_pkg_mtree_* functions
  • generate - generate the raw alpm-sys bindings at build time
  • checkver - check that the version of libalpm installed is compatible with alpm.rs
  • git - target the git master API
  • static - statically link to libalpm

Note: checkver does not work with the git feature. You can instead use the generate feature to ensure alpm.rs builds against a compatible libalpm version.

libalpm compatibility

alpm.rs always targets the latest version of libalpm. It may also support previous versions if the API was not changed.

alpm.rs also supports the pacman git master via the git feature.

Currently alpm.rs supports libalpm v15.x.x.

Note: When using the git feature, alpm.rs is updated against the libalpm git master as commits happen. As the git version is not considered stable software, this is done without bumping the major version.

Documentation

This crate just provides bindings for libalpm and hence does not document libalpm. You can find documentation for libalpm in the libalpm (3) man page or in alpm.h.

There are also examples on how to use the alpm crate in alpm/examples.

alpm-sys

This repo also contains the alpm-sys crate, providing raw bindings for libalpm. Although you probably just want to use the alpm crate instead.

Dependencies

~74–670KB