Expand description
§alpm-types
Types for Arch Linux Package Management.
The provided types and the traits they implement can be used in package management related applications (e.g. package manager, repository manager, special purpose parsers and file specifications, etc.) which deal with libalpm based packages.
This library strives to provide all underlying types for writing ALPM based software as a leaf-crate, so that they can be shared across applications and none of them has to implement them itself.
§Documentation
- https://alpm.archlinux.page/rustdoc/alpm_types/ for development version of the crate
- https://docs.rs/alpm-types/latest/alpm_types/ for released versions of the crate
§Contributing
Please refer to the contribution guidelines to learn how to contribute to this project.
§License
This project can be used under the terms of the Apache-2.0 or MIT. Contributions to this project, unless noted otherwise, are automatically licensed under the terms of both of those licenses.
Modules§
- checksum 🔒
- compression 🔒
- File compression related types.
- date 🔒
- digests
- Public re-exports of common hash functions, for use with
Checksum
. - env 🔒
- error 🔒
- file_
type 🔒 - File type handling.
- license 🔒
- name 🔒
- openpgp 🔒
- package 🔒
- Types related to package sources, contents and files.
- path 🔒
- pkg 🔒
- relation 🔒
- semver_
version - Public re-exports for use with
SchemaVersion
. - size 🔒
- source 🔒
- system 🔒
- url 🔒
- version 🔒
Structs§
- Absolute
Path - A representation of an absolute path
- Build
Tool - A build tool name
- Build
Tool Version - The version and architecture of a build tool
- Checksum
- A checksum using a supported algorithm
- Epoch
- An epoch of a package
- Extra
Data - Extra data associated with a package
- Installed
Package - Information on an installed package in an environment
- Name
- A package name
- OpenPGP
KeyId - An OpenPGP Key ID.
- OpenPG
Pv4Fingerprint - An OpenPGP v4 fingerprint.
- Optional
Dependency - An optional dependency for a package.
- Package
File Name - The full filename of a package.
- Package
Relation - A package relation
- Package
Release - The release version of a package.
- Package
Version - A pkgver of a package
- Packager
- A packager of a package
- Relative
Path - A representation of a relative file path
- Schema
Version - The schema version of a type
- Shared
Object Name - A shared object name.
- Soname
- The value of a shared object’s soname.
- Soname
V2 - Representation of soname data of a shared object based on the alpm-sonamev2 specification.
- Source
Url - A URL for package sources.
- Url
- Represents a URL.
- Version
- A version of a package
- Version
Requirement - A version requirement, e.g. for a dependency package.
- Version
Segments - An Iterator over all VersionSegments of an upstream version string. Check the documentation on VersionSegment to see how a string is split into segments.
Enums§
- Architecture
- CPU architecture
- Build
Environment Option - An option string used in a build environment
- Compression
Algorithm File Extension - The file extension of a compression algorithm.
- ElfArchitecture
Format - ELF architecture format.
- Error
- The library’s error type
- File
Type Identifier - The identifier of a file type used in ALPM.
- License
- Represents a license expression that can be either a valid SPDX identifier or a non-standard one.
- Makepkg
Option - Wraps the
PackageOption
andBuildEnvironmentOption
enums. - Metadata
File Name - The name of a required metadata file in an alpm-package.
- OpenPGP
Identifier - An OpenPGP key identifier.
- Package
Error - The error that can occur when handling types related to package data.
- Package
Option - An option string used in packaging
- Package
Type - The type of a package
- Relation
OrSoname - Provides either a
PackageRelation
or aSonameV1::Basic
. - Skippable
Checksum - A
Checksum
that may be skipped. - Soname
V1 - Representation of soname data of a shared object based on the alpm-sonamev1 specification.
- Source
- Represents the location that a source file should be retrieved from
- Version
Comparison - Specifies the comparison function for a
VersionRequirement
. - Version
OrSoname - Provides either a
PackageVersion
or aSharedObjectName
. - Version
Segment - This enum represents a single segment in a version string.
VersionSegment
s are returned by theVersionSegments
iterator, which is responsible for splitting a version string into its segments.
Constants§
- INSTALL_
SCRIPTLET_ FILE_ NAME - The name of an alpm-install-scriptlet file in an alpm-package.
- PKGBUILD_
FILE_ NAME - The name of a PKGBUILD file in a package source repository.
- SRCINFO_
FILE_ NAME - The name of a SRCINFO file in a package source repository.
Traits§
- Digest
- Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.
- From
Offset Date Time - A trait for allowing conversion from an [
OffsetDateTime
] to a type.
Type Aliases§
- Backup
- The path of a packaged file that should be preserved during package operations
- Blake2b512
Checksum - A checksum using the Blake2b512 algorithm
- Build
Date - A build date in seconds since the epoch
- Build
Directory - An absolute path used as build directory
- Changelog
- The relative path to a changelog file that may be included in a package
- Compressed
Size - Compressed size of a file (in bytes)
- Group
- Group of a package
- Install
- A special install script that is to be included in the package
- Installed
Size - Installed size of a package (in bytes)
- Md5Checksum
- A checksum using the Md5 algorithm
- Package
Base Name - Name of the base package information that one or more packages are built from.
- Package
Description - Description of a package
- Sha1
Checksum - A checksum using the Sha1 algorithm
- Sha224
Checksum - A checksum using the Sha224 algorithm
- Sha256
Checksum - A checksum using the Sha256 algorithm
- Sha384
Checksum - A checksum using the Sha384 algorithm
- Sha512
Checksum - A checksum using the Sha512 algorithm
- Shared
Library Prefix - A prefix associated with a library lookup directory.
- Start
Directory - An absolute path used as start directory in a package build environment