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§
- DepFlags
- DepFlags defined in depcache.h
- cache
- Contains Cache related structs.
- config
- Contains config related structs and functions.
- error
- There be Errors here.
- progress
- Contains Progress struct for updating the package list.
- raw
- C++ bindings for libapt-pkg
- records
- Allows access to complete package description records directly from the file.
- tagfile
- Contains structs and functions to parse Debian-styled RFC 822 files.
- util
- Contains miscellaneous helper utilities.
Macros§
- new_
cache - Macro to create the cache, optionally including local valid files.
Structs§
- BaseDep
- A struct representing a Base Dependency.
- Cache
- The main struct for accessing any and all
apt
data. - Dependency
- A struct representing a single Dependency record.
- Package
- A single unique libapt package.
- Package
File - Stores information about the files used to generate the cache
- Package
Sort - Determines how to sort packages from the Cache.
- Provider
- A Provider provides a Version and/or Package.
- Version
- Represents a single Version of a package.
- Version
File - Associates a version with a PackageFile
Enums§
- DepType
- The different types of Dependencies.
- PkgCurrent
State - The current state of a Package.
- PkgInst
State - Installation state of the package
- PkgSelected
State - The state that the user wishes the package to be in.