5 releases (1 stable)

Uses old Rust 2015

1.1.0 Jan 21, 2020
1.0.0 Nov 11, 2019
0.3.0 Oct 21, 2019
0.2.1 Sep 7, 2019
0.1.2 Oct 31, 2018

#6 in #alpm

Download history 11/week @ 2021-05-26 12/week @ 2021-06-02 19/week @ 2021-06-09 7/week @ 2021-06-16 6/week @ 2021-06-23 6/week @ 2021-06-30 7/week @ 2021-07-07 29/week @ 2021-07-14 4/week @ 2021-07-21 20/week @ 2021-07-28 15/week @ 2021-08-04 13/week @ 2021-08-11 6/week @ 2021-08-18 9/week @ 2021-08-25 1/week @ 2021-09-01 6/week @ 2021-09-08

73 downloads per month
Used in libalpm-fork

GPL-3.0 license

260KB
7.5K 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_* funtions
  • 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 v13.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.

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.

No runtime deps