MCPcopy Index your code
hub / github.com/archlinux/alpm.rs

github.com/archlinux/alpm.rs @alpm-sys-v4.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release alpm-sys-v4.0.1 ↗ · + Follow
718 symbols 1,769 edges 50 files 12 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 400
Class 157
Function 101
Enum 46
Interface 14

Languages

Rust100%

Modules by API surface

alpm/src/unions.rs69 symbols
alpm/src/handle.rs69 symbols
alpm/src/package.rs58 symbols
alpm/src/cb.rs56 symbols
alpm-sys/src/ffi_git.rs53 symbols
alpm-sys/src/ffi.rs53 symbols
alpm/src/list_mut.rs40 symbols
alpm/src/deps.rs36 symbols
alpm/src/db.rs35 symbols
alpm/src/types.rs29 symbols
alpm/src/signing.rs26 symbols
alpm/src/list.rs20 symbols

For agents

$ claude mcp add alpm.rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page