Expand description
rust-apt provides bindings to libapt-pkg
.
The goal is to eventually have all of the functionality of python-apt
The source repository is https://gitlab.com/volian/rust-apt For more information please see the readme in the source code.
Each module has a raw
submodule containing c++ bindings to libapt-pkg
These are safe to use in terms of memory, but may cause segfaults if you do something wrong.
If you find a way to segfault without using the libapt-pkg
bindings
directly, please report this as a bug.
Modules
Contains Cache related structs.
Contains config related structs and functions.
Contains Package, Version and Dependency Structs.
Contains types and bindings for fetching and installing packages from the cache.
Contains Progress struct for updating the package list.
Contains Records struct for getting extra information about a package.
Some of these functions are accessible on crate::package::Package
structs, please see if that suits your needs first. If not, you can also
access a Records
struct on any crate::cache::Cache
struct via
crate::cache::Cache::records
.
Contains miscellaneous helper utilities.