Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/archlinux/alpm
/ functions
Functions
1,873 in github.com/archlinux/alpm
⨍
Functions
1,873
◇
Types & classes
375
↳
Endpoints
4
↓ 2 callers
Function
init_logger
Initializes a global logger once.
alpm-mtree/tests/create.rs:39
↓ 2 callers
Function
init_logger
Initialize a logger that shows trace messages on stderr.
alpm-types/src/version/pkg_full.rs:346
↓ 2 callers
Function
init_logger
()
alpm-types/tests/integration.rs:13
↓ 2 callers
Method
inner
Return a reference to the inner type
alpm-types/src/name.rs:87
↓ 2 callers
Method
inner
Return a reference to the inner type
alpm-types/src/version/base.rs:249
↓ 2 callers
Method
into_deserializer
(self)
alpm-parsers/src/custom_ini/de.rs:130
↓ 2 callers
Method
into_iter
Creates an iterator over [`Architecture`]s.
alpm-types/src/system.rs:440
↓ 2 callers
Method
join
Creates an owned PathBuf with path adjoined to self.
alpm-package/src/config.rs:81
↓ 2 callers
Function
mode
Parse a filesystem mode. Should be between 3-5 octal numbers **without** a `0o` prefix.
alpm-mtree/src/parser.rs:193
↓ 2 callers
Method
mtree
Returns a reference to the [`Mtree`] data of the [`PackageInput`]. Compares the stored hash digest of the file with that of the file on disk. # Erro
alpm-package/src/input.rs:554
↓ 2 callers
Function
mtree_buffer_to_string
Creates a [`String`] from a byte vector which may be gzip compressed. If `buffer` contains gzip compressed data, it decompressed before converting it
alpm-mtree/src/utils.rs:26
↓ 2 callers
Function
new_filetime
Returns a [`FileTime`] with custom seconds since the UNIX_EPOCH.
alpm-mtree/tests/validate.rs:126
↓ 2 callers
Function
new_filetimes
Returns a [`FileTimes`] struct with custom seconds since the UNIX_EPOCH.
alpm-mtree/tests/validate.rs:116
↓ 2 callers
Function
openpgp_identifier_from_str
( identifier: &str, )
python-alpm/src/types/openpgp.rs:43
↓ 2 callers
Method
output_dir
Returns a reference to the [`OutputDir`].
alpm-package/src/config.rs:152
↓ 2 callers
Function
package_digest
Creates a package from an input directory and returns it and its hash digest. Creates an `input` and `output` directory in `path` (the caller has to
alpm-package/tests/integration.rs:286
↓ 2 callers
Method
package_input
Returns a reference to the [`PackageInput`].
alpm-package/src/config.rs:147
↓ 2 callers
Method
packages_for_architecture
Get an iterator over all packages ``` use alpm_srcinfo::{MergedPackage, SourceInfoV1}; use alpm_types::{Name, PackageDescription, PackageRelation, Sy
alpm-srcinfo/src/source_info/v1/mod.rs:242
↓ 2 callers
Function
parse_mtree_v2
Parse the content of an MTREE v2 file. This parser is backwards compatible to `v1`, in the sense that it allows `md5` checksums, but doesn't require
alpm-mtree/src/mtree/v2.rs:737
↓ 2 callers
Function
pkg_info
()
alpm-pkginfo/src/package_info/v2.rs:350
↓ 2 callers
Function
push_section
Pushes a section header to a [`String`]. Section headers are either `pkgname` or `pkgbase` and are **not** indented.
alpm-srcinfo/src/source_info/v1/writer.rs:15
↓ 2 callers
Method
raw_entries
Returns an iterator over the raw entries of the package's tar archive. The returned [`TarballEntries`] implements an iterator over each [`TarballEntr
alpm-package/src/package.rs:716
↓ 2 callers
Method
read_data_entry
Reads a [`TarballEntry`] matching a specific path name from the package archive. Returns [`None`] if no [`TarballEntry`] is found in the package arch
alpm-package/src/package.rs:916
↓ 2 callers
Function
setup_lib
Set up and compile the C project using Meson.
alpm-soname/tests/shared.rs:104
↓ 2 callers
Method
target_dir
(&self)
dev-scripts/src/sync/aur.rs:156
↓ 2 callers
Function
test_write_buildinfo
Test writing a buildinfo file either via CLI or environment variables.
alpm-buildinfo/tests/integration.rs:268
↓ 2 callers
Function
test_write_pkginfo
Test writing a pkginfo file either via CLI or environment variables.
alpm-pkginfo/tests/integration.rs:308
↓ 2 callers
Method
to_path_buf
Returns the [`PackageFileName`] as [`PathBuf`]. # Examples ``` use std::{path::PathBuf, str::FromStr}; use alpm_types::PackageFileName; # fn main(
alpm-types/src/package/file_name.rs:214
↓ 2 callers
Method
update
(&mut self, data: &[u8])
alpm-types/src/checksum.rs:608
↓ 2 callers
Method
version
(&self)
python-alpm/src/types/relation.rs:111
↓ 2 callers
Method
version_requirement
(&self)
python-alpm/src/types/relation.rs:312
↓ 1 callers
Method
add_absolute
Adds a new absolute path.
alpm-repo-db/src/files/v1.rs:133
↓ 1 callers
Method
add_absolute
Adds a new absolute path.
alpm-db/src/files/v1.rs:250
↓ 1 callers
Method
add_duplicate
Adds a new duplicate path.
alpm-repo-db/src/files/v1.rs:143
↓ 1 callers
Method
add_not_in_files
Adds a new path that is not tracked by the `%FILES%` section.
alpm-db/src/files/v1.rs:333
↓ 1 callers
Method
add_without_parent
Adds a new (non top-level) path that does not have a parent.
alpm-repo-db/src/files/v1.rs:138
↓ 1 callers
Method
add_without_parent
Adds a new (non top-level) path that does not have a parent.
alpm-db/src/files/v1.rs:255
↓ 1 callers
Function
append_relative_files
Appends relative files from an input directory to a [`TarballBuilder`]. Before appending any files, all provided `input_paths` are validated against
alpm-package/src/package.rs:160
↓ 1 callers
Method
apply_set
Apply a parsed `/set` statement's properties onto the current set of [PathDefaults].
alpm-mtree/src/mtree/v2.rs:37
↓ 1 callers
Method
apply_unset
Apply a parsed `/unset` statement's properties onto the current set of [PathDefaults].
alpm-mtree/src/mtree/v2.rs:49
↓ 1 callers
Method
architecture
(&self)
python-alpm/src/types/relation.rs:238
↓ 1 callers
Method
as_normalized_path
Returns the normalized [`std::path::Path`] of the [`Path`]. Normalization strips the prefix [`MTREE_PATH_PREFIX`]. # Errors Returns an [`alpm_commo
alpm-mtree/src/mtree/v2.rs:685
↓ 1 callers
Method
as_ref
Returns a reference to the inner [`Vec`] of [`PathBuf`]s.
alpm-repo-db/src/files/mod.rs:52
↓ 1 callers
Method
as_ref
Returns a reference to the inner [`Vec`] of [`PathBuf`]s.
alpm-db/src/files/mod.rs:52
↓ 1 callers
Method
as_ref
(&self)
alpm-types/src/name.rs:210
↓ 1 callers
Method
as_srcinfo
(&self)
python-alpm/src/srcinfo/source_info/v1/mod.rs:55
↓ 1 callers
Method
as_str
Returns a reference to the inner OpenPGP Key ID as a `&str`.
alpm-types/src/openpgp.rs:157
↓ 1 callers
Method
build_info
Returns a reference to the [`BuildInfo`] data of the [`PackageInput`]. # Note The [`BuildInfo`] data relates directly to an on-disk file tracked by
alpm-package/src/input.rs:528
↓ 1 callers
Function
check
Runs a lint check. If not provided, the `path` and `scope` are automatically detected. Defaults to the current working directory if no `path` is prov
alpm-lint/src/commands.rs:79
↓ 1 callers
Method
check
Checks if errors have been appended and consumes `self`. # Errors Returns an error if one or more errors have been appended.
alpm-mtree/src/mtree/path_validation_error.rs:47
↓ 1 callers
Function
clone_repo
Clone a git repository into a target directory.
dev-scripts/src/sync/pkgsrc.rs:230
↓ 1 callers
Method
cmp
(&self, other: &Self)
alpm-types/src/checksum.rs:474
↓ 1 callers
Function
collect_files
Collects all files in a `path` as a sorted list of paths and strips `init_path` from them. Recursively calls itself on all directories contained in `
alpm-common/src/package/input.rs:192
↓ 1 callers
Function
compare_source_info
Run the `alpm-pkgbuild srcinfo format` command on a PKGBUILD and compare its output with a given .SRCINFO file. If the generated and read [`SRCINFO`]
dev-scripts/src/commands.rs:150
↓ 1 callers
Method
compression
Returns a reference to the [`CompressionSettings`].
alpm-package/src/config.rs:157
↓ 1 callers
Method
configuration_options
Returns a map of configuration options used by this lint rule. The returned map of [`LintRuleConfigurationOptionName`] represents the options that th
alpm-lint/src/rule.rs:98
↓ 1 callers
Function
create_build_info_file
Creates a [BUILDINFO] file in `path`. [BUILDINFO]: https://alpm.archlinux.page/specifications/BUILDINFO.5.html
alpm-package/tests/integration.rs:201
↓ 1 callers
Function
create_build_info_file
Creates ALPM package metadata files in `path`.
alpm-mtree/tests/validate.rs:178
↓ 1 callers
Function
create_buildinfo_file
Helper function to create a .BUILDINFO file with test data.
alpm-lint/tests/resources.rs:72
↓ 1 callers
Function
create_data_files
Creates data files and directories below `path`.
alpm-package/tests/integration.rs:146
↓ 1 callers
Function
create_data_files
Creates test files and directories below `path`.
alpm-mtree/tests/validate.rs:131
↓ 1 callers
Function
create_file
Create a file according to a BUILDINFO schema
alpm-buildinfo/src/commands.rs:42
↓ 1 callers
Function
create_file
Creates an [alpm-repo-desc] file according to the specified version command. [alpm-repo-desc]: https://alpm.archlinux.page/specifications/alpm-repo-d
alpm-repo-db/src/desc/commands.rs:37
↓ 1 callers
Function
create_file
Create a file according to a PKGINFO schema ## Errors Returns an error if one of the provided arguments is not valid, if creating output directory o
alpm-pkginfo/src/commands.rs:47
↓ 1 callers
Function
create_from_dir
Creates [`alpm-repo-files`] data from a directory. Outputs data on [`stdout`] if no `output` is provided. If `output` is provided, attempts to write
alpm-repo-db/src/bin/alpm-repo-files.rs:62
↓ 1 callers
Function
create_from_dir
Creates [`alpm-db-files`] data from a directory. Outputs data on [`stdout`] if no `output` is provided. If `output` is provided, attempts to write da
alpm-db/src/bin/alpm-db-files.rs:62
↓ 1 callers
Function
create_install_scriptlet
Creates an [alpm-install-scriptlet] file in `path`. [alpm-install-scriptlet]: https://alpm.archlinux.page/specifications/alpm-install-scriptlet.5.htm
alpm-package/tests/integration.rs:225
↓ 1 callers
Function
create_mtree_file
Creates a [PKGINFO] file in `path`. [PKGINFO]: https://alpm.archlinux.page/specifications/PKGINFO.5.html
alpm-package/tests/integration.rs:237
↓ 1 callers
Function
create_mtree_file_in_dir
Creates an [ALPM-MTREE] file in a directory. Validates the `mtree_data` based on `schema` and then creates the [ALPM-MTREE] file in `path` using `mtr
alpm-mtree/src/file/common.rs:156
↓ 1 callers
Function
create_mtree_v1_from_input_dir
Creates a new [ALPM-MTREEv1] file from an input directory and returns its path. Calls [`create_mtree_file_from_input_dir`] with [bsdtar] options spec
alpm-mtree/src/file/create.rs:19
↓ 1 callers
Function
create_package_info_file
Creates a [PKGINFO] file in `path`. [PKGINFO]: https://alpm.archlinux.page/specifications/PKGINFO.5.html
alpm-package/tests/integration.rs:213
↓ 1 callers
Function
create_package_info_file
Creates ALPM package metadata files in `path`.
alpm-mtree/tests/validate.rs:188
↓ 1 callers
Function
create_pkginfo_file
Helper function to create a .PKGINFO file with test data.
alpm-lint/tests/resources.rs:65
↓ 1 callers
Function
create_zstd_encoder
Creates and configures an [`Encoder`]. Uses a dedicated `compression_level` and amount of `threads` to construct and configure an encoder for zstd co
alpm-compress/src/compression/encoder.rs:31
↓ 1 callers
Function
default_build_info_v2
Creates a default [`BuildInfoV2`] instance for testing.
alpm-lint/tests/fixtures.rs:59
↓ 1 callers
Function
default_package_info_v2
Creates a default [`PackageInfoV2`] instance for testing.
alpm-lint/tests/fixtures.rs:79
↓ 1 callers
Method
description
(&self)
python-alpm/src/types/relation.rs:363
↓ 1 callers
Method
documentation
(&self)
alpm-lint/src/lint_rules/store.rs:416
↓ 1 callers
Method
download_package_source_repositories
Download all official package source git repositories.
dev-scripts/src/sync/pkgsrc.rs:51
↓ 1 callers
Method
download_packages
Clone (or update) the AUR git repo and extract .SRCINFO + PKGBUILD for every package
dev-scripts/src/sync/aur.rs:41
↓ 1 callers
Method
download_packages
Downloads all packages and signatures of a package repository to a local directory.
dev-scripts/src/sync/mirror/mod.rs:284
↓ 1 callers
Function
ensure_single_clearable_value
Ensures that in a combination of [`Keyword`] and [`ClearableValue`], a [`ClearableValue::Single`] is used and returns the value. # Errors Returns an
alpm-srcinfo/src/pkgbuild_bridge/package.rs:152
↓ 1 callers
Method
entries
Returns an iterator over the entries in the tarball. # Errors Returns an error if [`Archive::entries`] fails.
alpm-compress/src/tarball/reader.rs:53
↓ 1 callers
Method
entries
Returns the parsed entries.
alpm-db/src/files/v1.rs:223
↓ 1 callers
Method
epoch
(&self)
python-alpm/src/types/version.rs:223
↓ 1 callers
Method
eq
(&self, other: &Self)
alpm-types/src/checksum.rs:466
↓ 1 callers
Method
equals_path
Checks whether [`InputPath`] equals `self`. More specifically, checks that - [`MTREE_PATH_PREFIX`] can be stripped from `self.path`, - [`InputPath::
alpm-mtree/src/mtree/v2.rs:209
↓ 1 callers
Method
extra_links
(&self)
alpm-lint/src/lint_rules/source_info/openpgp_key_id.rs:124
↓ 1 callers
Function
extract_pkg_files
Use `tar` to extract relevant package metadata and script files from packages files. This function attempts to extract ".MTREE", ".BUILDINFO", ".PKGI
dev-scripts/src/sync/mirror/mod.rs:400
↓ 1 callers
Method
fail
Fails if `self` tracks any invalid paths.
alpm-repo-db/src/files/v1.rs:148
↓ 1 callers
Method
filename
(&self)
python-alpm/src/types/source.rs:20
↓ 1 callers
Function
files_in_dirs_by_extension
Collects all regular files in a list of directories and filters them by extension. Skips non-existent paths in `dirs`. Only considers regular files,
dev-scripts/src/testing.rs:308
↓ 1 callers
Method
filtered_lint_rules
Returns lint rules that match a filter consisting of [`LintScope`] and [`Level`]. This function filters out all lint rules that are not explicitly in
alpm-lint/src/lint_rules/store.rs:180
↓ 1 callers
Function
foo_test
alpm-soname/tests/test_files/lib.c:1
↓ 1 callers
Function
format
Formats a file according to a BUILDINFO schema. Validates and prints the parsed file in the specified output format to stdout. The output will be pr
alpm-buildinfo/src/commands.rs:148
↓ 1 callers
Function
format
Formats and optionally pretty prints an [alpm-repo-desc] file. # Errors Returns an error if - the [alpm-repo-desc] file cannot be parsed, - or the
alpm-repo-db/src/desc/commands.rs:168
↓ 1 callers
Function
format
Parse a given file and output it in the specified format to stdout. # Errors Returns an error if the input can not be parsed and validated, or if th
alpm-mtree/src/commands.rs:46
↓ 1 callers
Function
format
Formats and optionally pretty prints an [alpm-db-desc] file. # Errors Returns an error if - the [alpm-db-desc] file cannot be parsed, - or the data
alpm-db/src/desc/commands.rs:158
↓ 1 callers
Function
format
Formats a file according to a PKGINFO schema. Validates and prints the parsed file in the specified output format to stdout. The output will be pret
alpm-pkginfo/src/commands.rs:178
↓ 1 callers
Function
format_output
Formats [`alpm-repo-files`] data as another file format. If no `input_file` is provided, data is read from [`stdin`]. If `output` is provided, attemp
alpm-repo-db/src/bin/alpm-repo-files.rs:108
← previous
next →
201–300 of 1,873, ranked by callers