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
↓ 4 callers
Method
as_path
Coerces to a Path slice. Delegates to [`PathBuf::as_path`].
alpm-package/src/package.rs:99
↓ 4 callers
Method
as_ref
Returns a reference to the inner [`Vec`] of [`PathBuf`]s.
alpm-db/src/files/v1.rs:396
↓ 4 callers
Method
by_ref
(&mut self)
alpm-compress/src/compression/encoder.rs:237
↓ 4 callers
Method
cmp
(&self, other: &Self)
alpm-mtree/src/mtree/v2.rs:691
↓ 4 callers
Method
cmp
(&self, other: &Self)
alpm-types/src/version/pkg_generic.rs:173
↓ 4 callers
Method
cmp
Compares `self` to another [`MinimalVersion`]. The comparison rules and algorithms are explained in more detail in [alpm-package-version] and [alpm-p
alpm-types/src/version/pkg_minimal.rs:236
↓ 4 callers
Method
cmp
Compares `self` to another [`FullVersion`]. The comparison rules and algorithms are explained in more detail in [alpm-package-version] and [alpm-pkgv
alpm-types/src/version/pkg_full.rs:259
↓ 4 callers
Function
create_file_with_content
Helper function to create a file with content in a the given directory.
alpm-lint/tests/resources.rs:39
↓ 4 callers
Function
create_package
Helper function to create a package from an input directory config and optional compression settings.
alpm-package/tests/integration.rs:573
↓ 4 callers
Method
data_entries
Returns an iterator over the data files of the [alpm-package] archive. This iterator yields the path and content of each data file of a package archi
alpm-package/src/package.rs:804
↓ 4 callers
Function
default_filetime
Returns a default [`FileTime`] struct with all times set to UNIX_EPOCH.
alpm-package/tests/integration.rs:141
↓ 4 callers
Method
download_dir
(&self)
dev-scripts/src/sync/aur.rs:148
↓ 4 callers
Method
find_files_of_type
Searches the download directory for all files of the given type. Returns a list of Paths that were found in the process.
dev-scripts/src/testing.rs:208
↓ 4 callers
Function
get_progress_bar
Get a styled indicatif progress bar for reuse across the project.
dev-scripts/src/ui.rs:4
↓ 4 callers
Function
get_raw_dependencies_via_cli
Invoke the CLI to get raw dependencies.
alpm-soname/tests/integration.rs:75
↓ 4 callers
Function
init_logger
Initializes a global [`TermLogger`].
alpm-package/src/package.rs:1192
↓ 4 callers
Method
inner
Returns the schema version
alpm-buildinfo/src/schema.rs:33
↓ 4 callers
Method
inner_mut
Returns a mutable reference to the inner [`Builder`]. This can be used to set options to the builder or append files to the tarball. # Examples ```
alpm-compress/src/tarball/builder.rs:56
↓ 4 callers
Method
into_inner
Return the inner [`TarballEntries`] iterator at the current iteration position.
alpm-package/src/package.rs:314
↓ 4 callers
Method
merge_option
(self, other: &mut Option<T>)
alpm-srcinfo/src/source_info/v1/package.rs:63
↓ 4 callers
Method
metadata_entries
Returns an iterator over the metadata entries in the package archive. This iterator yields [`MetadataEntry`]s, which can be either [PKGINFO], [BUILDI
alpm-package/src/package.rs:773
↓ 4 callers
Method
next
(&mut self)
alpm-package/src/package.rs:392
↓ 4 callers
Method
package_info
Returns a reference to the [`PackageInfo`] data of the [`PackageInput`]. # Note The [`PackageInfo`] data relates directly to an on-disk file tracked
alpm-package/src/input.rs:540
↓ 4 callers
Function
parse
Parses an [alpm-repo-desc] file and returns it as a [`RepoDescFile`]. Data can be read from file or stdin. # Errors Returns an error if - valid da
alpm-repo-db/src/desc/commands.rs:142
↓ 4 callers
Function
parse
Parses an [alpm-db-desc] file and returns it as a [`DbDescFile`]. Data can be read from file or stdin. # Errors Returns an error if - valid data c
alpm-db/src/desc/commands.rs:132
↓ 4 callers
Function
parse_clearable_value
Ensures that a combination of [`Keyword`] and [`ClearableValue`] uses a [`ClearableValue::Single`] and parses the value as a specific type. # Errors
alpm-srcinfo/src/pkgbuild_bridge/package.rs:174
↓ 4 callers
Method
paths
Returns the paths.
alpm-db/src/files/v1.rs:119
↓ 4 callers
Function
push_optional_value
Pushes a key-value pair to a [`String`], if it is set. Key-value pairs are scoped to a section. To make this visually distinguishable, the key-value
alpm-srcinfo/src/source_info/v1/writer.rs:38
↓ 4 callers
Function
push_override_value
Pushes an override key-value pair in [SRCINFO] format to a [`String`]. Key-value pairs are scoped to a section. To make this visually distinguishable
alpm-srcinfo/src/source_info/v1/writer.rs:218
↓ 4 callers
Method
repo_dir
(&self)
dev-scripts/src/sync/aur.rs:152
↓ 4 callers
Function
serialize_output
Takes any serializable object and serializes it into the given [`OutputFormat`]. # Errors Returns an error if serialization fails.
alpm-lint/src/commands.rs:50
↓ 4 callers
Function
source_info_from_file
( path: std::path::PathBuf, schema: Option<SourceInfoSchema>, )
python-alpm/src/srcinfo/source_info/mod.rs:34
↓ 4 callers
Function
source_info_from_str
( s: &str, schema: Option<SourceInfoSchema>, )
python-alpm/src/srcinfo/source_info/mod.rs:23
↓ 4 callers
Function
system_id
Parse a simple system id as usize.
alpm-mtree/src/parser.rs:167
↓ 4 callers
Function
write_output
Writes `content` to stdout or a file. If `output_path` is a file path, `content` is written to it, else `content` is written to stdout. # Errors Re
alpm-lint/src/commands.rs:25
↓ 3 callers
Method
applyFilters
()
alpm-lint-website/static/js/lint-filter.js:172
↓ 3 callers
Method
as_path
Coerces to a Path slice.
alpm-package/src/config.rs:71
↓ 3 callers
Method
cmp
This block implements the logic to determine which of two package versions is newer or whether they're considered equal. This logic is surprisingly c
alpm-types/src/version/comparison.rs:276
↓ 3 callers
Method
cmp
(&self, other: &Self)
alpm-types/src/version/base.rs:199
↓ 3 callers
Function
compare_digests
Compares the hash digest of a file with the recorded data in an [`Mtree`]. Takes an `mtree` against which a `file_name` in `input_dir` is checked. Re
alpm-package/src/input.rs:187
↓ 3 callers
Function
create_file
Creates an [alpm-db-desc] file according to the specified version command. [alpm-db-desc]: https://alpm.archlinux.page/specifications/alpm-db-desc.5.
alpm-db/src/desc/commands.rs:37
↓ 3 callers
Function
create_srcinfo_file
Helper function to create a .SRCINFO file with test data.
alpm-lint/tests/resources.rs:58
↓ 3 callers
Method
derive_from_str
(srcinfo: &str)
python-alpm/src/srcinfo/schema.rs:23
↓ 3 callers
Function
deserialize
()
alpm-parsers/src/custom_ini/de.rs:402
↓ 3 callers
Function
ensure_keyword_exists
Ensures a [`Keyword`] exists in a [`HashMap`], removes it and returns it. This is a helper function to ensure expected values are set while throwing
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:82
↓ 3 callers
Function
extract_elf_sonames
Extracts the **sonames** from ELF files contained in a package. This function opens the package file, decompresses it, and reads the ELF files from t
alpm-soname/src/lookup.rs:37
↓ 3 callers
Function
filenames_in_dir
A small helper function that returns a list of unique file names in a directory.
dev-scripts/src/sync/mod.rs:37
↓ 3 callers
Function
ini_file
Parse the content of a whole ini file.
alpm-parsers/src/custom_ini/parser.rs:121
↓ 3 callers
Function
init_logger
()
alpm-types/src/package/file_name.rs:568
↓ 3 callers
Method
inner
Returns a reference to the inner [`SchemaVersion`].
alpm-srcinfo/src/schema.rs:35
↓ 3 callers
Method
is_spdx
Returns `true` if the license is a valid SPDX identifier
alpm-types/src/license.rs:136
↓ 3 callers
Method
key
Return the key of the extra_data
alpm-types/src/pkg.rs:166
↓ 3 callers
Method
level
(&self)
alpm-lint/src/lint_rules/store.rs:400
↓ 3 callers
Method
name
(&self)
alpm-lint/src/lint_rules/store.rs:392
↓ 3 callers
Function
parse
Parses a file according to a BUILDINFO schema. Returns a serializable BuildInfo if the file is valid, otherwise an error is returned. NOTE: If a com
alpm-buildinfo/src/commands.rs:122
↓ 3 callers
Function
parse
Parses a file according to a PKGINFO schema. Returns a serializable PackageInfo if the file is valid, otherwise an error is returned. NOTE: If a com
alpm-pkginfo/src/commands.rs:141
↓ 3 callers
Function
parse_value
Ensures that a combination of [`Keyword`] and [`Value`] uses a [`Value::Single`] and parses the value as a specific type. # Errors Returns a error f
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:137
↓ 3 callers
Method
read_metadata_file
Reads the data of a specific metadata file from the [alpm-package] file. This method searches for a metadata file that matches the provided [`Metadat
alpm-package/src/package.rs:873
↓ 3 callers
Method
read_pkginfo
Returns the [`PackageInfo`] of the package. This is a convenience wrapper around [`PackageReader::read_metadata_file`]. # Errors Returns an error i
alpm-package/src/package.rs:1018
↓ 3 callers
Function
relation_or_soname_from_str
(s: &str)
python-alpm/src/types/relation.rs:83
↓ 3 callers
Method
scope
(&self)
alpm-lint/src/lint_rules/store.rs:396
↓ 3 callers
Method
segments
Return an iterator over all segments of this version.
alpm-types/src/version/base.rs:254
↓ 3 callers
Function
setup_faulty_srcinfo
Creates a `.SRCINFO` file with unsafe checksums in a temporary directory. Returns the temporary directory handle.
alpm-lint/tests/integration.rs:18
↓ 3 callers
Function
validate_path_common
Validates common path features against relevant [`Mtree`] data. Returns a list of zero or more [`PathValidationError`]s. Checks that - `mtree_time`
alpm-mtree/src/mtree/v2.rs:70
↓ 2 callers
Method
add_duplicate
Adds a new duplicate path.
alpm-db/src/files/v1.rs:260
↓ 2 callers
Method
all_entries_found
Checks whether all variants of [`PackageEntry`] have been found. Returns `true` if all variants of [`PackageEntry`] have been found, `false` otherwis
alpm-package/src/package.rs:321
↓ 2 callers
Method
as_owned_vec
Returns the values of `self` in vector representation. This is useful for values that may be available as both single values and arrays.
alpm-pkgbuild/src/bridge/parser.rs:111
↓ 2 callers
Method
as_vec
Returns the values of `&self` in vector representation. This is useful for values that may be available as both single values and arrays.
alpm-pkgbuild/src/bridge/parser.rs:101
↓ 2 callers
Function
bytes_to_string
Take the UTF-8 byte sequence and parse it into a `String`. # Errors Returns a custom parse error if we encounter an invalid escaped UTF-8 sequence.
alpm-mtree/src/path_decoder.rs:149
↓ 2 callers
Function
check_scriptlet
Validates an [alpm-install-scriptlet] at `path`. Naively checks whether at least one of the required function signatures is present in the file. # N
alpm-package/src/scriptlet.rs:40
↓ 2 callers
Method
clearAllFilters
()
alpm-lint-website/static/js/lint-filter.js:151
↓ 2 callers
Method
clearURL
()
alpm-lint-website/static/js/lint-rules.js:91
↓ 2 callers
Method
closeAllDropdowns
()
alpm-lint-website/static/js/lint-filter.js:142
↓ 2 callers
Method
collapseRule
(ruleId)
alpm-lint-website/static/js/lint-rules.js:65
↓ 2 callers
Function
compare_build_info_package_info
Compares overlapping data of a [`BuildInfo`] and a [`PackageInfo`]. # Errors Returns an error if there are one or more mismatches in the data provid
alpm-package/src/input.rs:429
↓ 2 callers
Function
contains_architecture
Check if a system architecture is contained by a (set) of [Architectures].
alpm-lint/src/lint_rules/source_info/undefined_architecture.rs:67
↓ 2 callers
Method
content
Returns the content of the entry. # Errors Returns an error if [`Entry::read_to_end`] fails.
alpm-compress/src/tarball/reader.rs:161
↓ 2 callers
Function
content_line
Return the nth line of a given file's content. # Panics Panics if `line_nr` refers to a line, that does not exist in `content`. This is unlikely to
alpm-mtree/src/mtree/v2.rs:793
↓ 2 callers
Function
create_bin_package
Create a package for the binary.
alpm-soname/tests/shared.rs:130
↓ 2 callers
Function
create_data_files
(path: impl AsRef<Path>)
alpm-common/src/package/input.rs:345
↓ 2 callers
Function
create_lib_package
Create a package for the binary.
alpm-soname/tests/shared.rs:160
↓ 2 callers
Function
create_metadata_files
(path: impl AsRef<Path>)
alpm-common/src/package/input.rs:356
↓ 2 callers
Function
create_mtree_file_from_input_dir
Creates an [ALPM-MTREE] file from a package input directory. Collects all files in `path` relative to it in a newline-delimited string. Calls the [bs
alpm-mtree/src/file/common.rs:215
↓ 2 callers
Function
create_pkgbuild_file
Helper function to create a PKGBUILD file with minimal content.
alpm-lint/tests/resources.rs:79
↓ 2 callers
Function
create_scriptlet_file
(path: impl AsRef<Path>)
alpm-common/src/package/input.rs:367
↓ 2 callers
Function
create_test_files
Creates test files and directories below `path`.
alpm-mtree/tests/create.rs:26
↓ 2 callers
Function
decode_utf8_chars
Decodes UTF-8 characters from a string using MTREE-specific escape sequences. MTREE uses various decodings. 1. the VIS_CSTYLE encoding of `strsvis(3)
alpm-mtree/src/path_decoder.rs:30
↓ 2 callers
Method
edit_distance
Calculate edit distance between `self` and `other` using the Levenshtein distance algorithm.
alpm-lint/src/utils.rs:9
↓ 2 callers
Function
ensure_single_value
Ensures that a combination of [`Keyword`] and [`Value`] uses a [`Value::Single`] and returns the value. # Errors Returns an error, if `value` is a [
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:120
↓ 2 callers
Method
expandRule
(ruleId)
alpm-lint-website/static/js/lint-rules.js:48
↓ 2 callers
Method
fail
Fails if `self` tracks any invalid paths.
alpm-db/src/files/v1.rs:265
↓ 2 callers
Method
file_content_updated
Check if file content was changed in such a way that it should be extracted again. Returns `Ok(Some(path))`, where `path` points to the file if there
dev-scripts/src/sync/mirror/rsync_changes.rs:146
↓ 2 callers
Function
find_dependencies
Finds the **soname** dependencies required by a package. This function takes a package file `path` and a lookup directory `lookup_dir` and extracts a
alpm-soname/src/lookup.rs:165
↓ 2 callers
Function
find_provisions
Finds the **soname** data provided by a package. This function takes a package file and a lookup directory and extracts a list of [`SonameV2`] provid
alpm-soname/src/lookup.rs:108
↓ 2 callers
Method
from_file
(path: PathBuf)
python-alpm/src/srcinfo/source_info/v1/mod.rs:24
↓ 2 callers
Method
from_pkgbuild
(path: PathBuf)
python-alpm/src/srcinfo/source_info/v1/mod.rs:30
↓ 2 callers
Method
from_valid_spdx
(identifier: &str)
python-alpm/src/types/license.rs:20
↓ 2 callers
Function
git_query
Recognizes URL queries specific to the Git VCS. This parser considers the `?signed` URL query in an alpm-package-source string.
alpm-types/src/url.rs:609
↓ 2 callers
Function
group_sonames_by_prefix
Groups a list of [`SonameV2`] data by their shared library prefixes. Returns a map of shared library prefixes, each with a list of raw [`Soname`] inf
alpm-soname/src/commands.rs:257
↓ 2 callers
Method
groups
(&self)
alpm-lint/src/lint_rules/store.rs:404
← previous
next →
101–200 of 1,873, ranked by callers