MCPcopy Create free account

hub / github.com/archlinux/alpm / functions

Functions1,873 in github.com/archlinux/alpm

↓ 317 callersFunctionfrom_str
Generically creates a deserializer from string slice. # Errors Returns an error if - a deserializer cannot be created from `s`, - or the deserializ
alpm-parsers/src/custom_ini/de.rs:338
↓ 236 callersMethodjoin
Creates an owned PathBuf with path adjoined to self. Delegates to [`Path::join`].
alpm-package/src/input.rs:162
↓ 145 callersMethodpath
Returns a reference to the relative path in base dir.
alpm-common/src/package/input.rs:63
↓ 88 callersMethodfrom_str
(format: &str)
python-alpm/src/types/system.rs:330
↓ 87 callersMethodparse
Creates a type `T` from the inner string slice by relying on `T`'s [`FromStr::from_str`] implementation.
alpm-types/src/version/comparison.rs:125
↓ 65 callersMethodto_path_buf
Converts a Path to an owned PathBuf. Delegates to [`Path::to_path_buf`].
alpm-package/src/input.rs:155
↓ 62 callersMethodis_empty
Returns true if there are no extra data entries. Due to the invariant enforced in [`TryFrom`], this will always return `false` and is only included f
alpm-types/src/pkg.rs:253
↓ 54 callersMethodvalue
Return the value of the extra_data
alpm-types/src/pkg.rs:171
↓ 47 callersMethodas_ref
(&self)
alpm-types/src/url.rs:71
↓ 41 callersMethodcontains
Determines whether a [`LintScope`] contains or matches another. In this context "contains" and "matches" means that either `self` is identical to `ot
alpm-lint/src/scope.rs:118
↓ 40 callersFunctionpush_value_list
Pushes a list of key-value pairs in [SRCINFO] format to a [`String`]. Each value in `values` is added as a new line. If `values` is empty, nothing is
alpm-srcinfo/src/source_info/v1/writer.rs:55
↓ 37 callersFunctioncreate
Take a [PKGBUILD], create [SRCINFO] data from it and print it. # Errors Returns an error if - running the [`alpm-pkgbuild-bridge`] script fails, -
alpm-srcinfo/src/commands.rs:48
↓ 33 callersMethodwrite_all
(&mut self, buf: &[u8])
alpm-compress/src/compression/encoder.rs:217
↓ 30 callersMethodto_path_buf
Returns the [`PathBuf`] of the [`Path`].
alpm-mtree/src/mtree/v2.rs:661
↓ 29 callersMethodinto_iter
Consumes the [`ExtraData`] and returns an iterator over [`ExtraDataEntry`] items.
alpm-types/src/pkg.rs:308
↓ 26 callersMethodlen
Returns the number of extra data entries.
alpm-types/src/pkg.rs:245
↓ 24 callersFunctionconfigure_insta
()
alpm-types/src/lib.rs:167
↓ 24 callersFunctionensure_no_suffix
Ensures that a combination of a [`Keyword`] and an optional [`SystemArchitecture`] does not use an [`SystemArchitecture`]. # Errors Returns an error
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:100
↓ 23 callersMethodas_str
Returns a reference to the inner `url::Url` as a `&str`.
alpm-types/src/url.rs:55
↓ 22 callersFunctiondefault_source_info_v1
Creates a default [`SourceInfoV1`] instance for testing. The data provides a single package for "any" architecture.
alpm-lint/tests/fixtures.rs:45
↓ 21 callersMethodas_path
Returns the [`std::path::Path`] of the [`Path`].
alpm-mtree/src/mtree/v2.rs:670
↓ 21 callersMethodas_ref
(&self)
alpm-package/src/input.rs:168
↓ 21 callersMethodas_ref
(&self)
dev-scripts/src/cache.rs:45
↓ 20 callersMethodrun
( &self, _resources: &Resources, _issues: &mut Vec<LintIssue>,
alpm-lint/src/lint_rules/store.rs:408
↓ 20 callersMethodwrite
(&mut self, buf: &[u8])
alpm-compress/src/compression/encoder.rs:187
↓ 19 callersMethodscoped_name
Returns the full name of this lint by combining [`LintRule::scope`] and [`LintRule::name`] as `{scope}::{name}`. # Warning Do not re-implement this.
alpm-lint/src/rule.rs:26
↓ 18 callersMethodas_path
Coerces to a Path slice. Delegates to [`PathBuf::as_path`].
alpm-package/src/input.rs:148
↓ 18 callersFunctiondefault_filetimes
Returns a default [`FileTimes`] struct with all times set to UNIX_EPOCH.
alpm-mtree/tests/validate.rs:104
↓ 18 callersMethodflush
(&mut self)
alpm-compress/src/compression/encoder.rs:207
↓ 18 callersFunctionsection
Parses a single `%SECTION%` block and returns a [`Section`] variant. # Errors Returns an error if: - the section name is invalid or not recognized,
alpm-repo-db/src/desc/parser.rs:266
↓ 17 callersFunctionnext_is
Helper function to assert the next rule name from a filtered iterator.
alpm-lint/src/lint_rules/store.rs:462
↓ 17 callersFunctionrelative_files
Collects all files contained in a directory `path` as a list of sorted relative paths. Recursively iterates over all entries of `path` (see [`read_di
alpm-common/src/package/input.rs:171
↓ 15 callersFunctionensure_property
Take any given property and ensure that it's set. # Errors - `Error::InterpreterError` if the expected property is `None`.
alpm-mtree/src/mtree/v2.rs:809
↓ 14 callersMethodmerge_vec
(self, other: &mut Vec<T>)
alpm-srcinfo/src/source_info/v1/package.rs:98
↓ 14 callersFunctionpush_override_value_list
Pushes a list of override key-value pairs in [SRCINFO] format to a [`String`]. Each value in `values` is added as a new line. If `values` is empty, n
alpm-srcinfo/src/source_info/v1/writer.rs:242
↓ 14 callersMethodvalidate_paths
Validates an [`InputPaths`]. With `input_paths`a set of relative paths and a common base directory is provided. Each member of [`InputPaths::paths`]
alpm-mtree/src/mtree/mod.rs:79
↓ 13 callersMethodchars
Returns an iterator over the chars of the inner string slice.
alpm-types/src/version/comparison.rs:115
↓ 13 callersMethodfinish
Finishes writing the tarball. Delegates to [`CompressionEncoder::finish`] of the inner [`Builder`]. # Errors Returns an error if the [`CompressionE
alpm-compress/src/tarball/builder.rs:67
↓ 13 callersFunctionvalue
Parses a single value from the input. Consumes text until the end of the current line. # Errors Returns an error if the next token cannot be parsed
alpm-repo-db/src/desc/parser.rs:201
↓ 13 callersMethodvalue_or_error
Returns a string slice representing a single value. # Errors Returns an error if the [`Item`] represents a list of values.
alpm-parsers/src/custom_ini/parser.rs:45
↓ 12 callersFunctionensure_success
Make sure a command finished successfully, otherwise throw an error.
dev-scripts/src/cmd.rs:6
↓ 12 callersFunctioninit_logger
Initializes a global logger once.
alpm-mtree/tests/validate.rs:216
↓ 12 callersMethodis_dir
Checks whether the [`TarballEntry`] represents a directory. Returns `true` if the [`TarballEntry`] represents a directory, `false` otherwise. # Note
alpm-compress/src/tarball/reader.rs:180
↓ 12 callersFunctionprepare_input_dir
Prepares the input directory by creating (meta)data files and ALPM-MTREE file.
alpm-mtree/tests/validate.rs:198
↓ 12 callersMethodto_path_buf
Converts a Path to an owned PathBuf. Delegates to [`Path::to_path_buf`].
alpm-package/src/package.rs:106
↓ 11 callersMethodall
Creates a new [`ZstdThreads`] which uses all physical CPU cores. This is short for calling [`ZstdThreads::new`] with `0`.
alpm-compress/src/compression/settings.rs:30
↓ 11 callersMethodas_ref
(&self)
alpm-package/src/package.rs:119
↓ 11 callersFunctioninit
(m: &Bound<'_, PyModule>)
python-alpm/src/lib.rs:22
↓ 10 callersFunctionvalue
Parses a single value from the input. Consumes text until the end of the current line. # Errors Returns an error if the next token cannot be parsed
alpm-db/src/desc/parser.rs:188
↓ 9 callersMethodappend
Appends a list of [`PathValidationError`]s to `self.errors`.
alpm-mtree/src/mtree/path_validation_error.rs:38
↓ 9 callersMethodinner
Returns a reference to the inner `url::Url`.
alpm-types/src/url.rs:65
↓ 9 callersMethodis_empty
Returns whether the inner string slice is empty, independent of [`VersionSegment`] variant
alpm-types/src/version/comparison.rs:106
↓ 9 callersMethodname
Get the name of the BuildEnvironmentOption
alpm-types/src/env.rs:217
↓ 9 callersFunctionpath_metadata
Returns the [`Metadata`] of a [`std::path::Path`]. Uses [`Path::symlink_metadata`][`std::path::Path::symlink_metadata`] if `is_symlink` is `true`, el
alpm-mtree/src/mtree/v2.rs:154
↓ 9 callersFunctionvalues
Parses a list of values from the input. Repeats `value()` until the next section header (`%...%`) or the end of the file. # Errors Returns an error
alpm-repo-db/src/desc/parser.rs:238
↓ 9 callersFunctionvalues
Parses a list of values from the input. Repeats `value()` until the next section header (`%...%`) or the end of the file. # Errors Returns an error
alpm-db/src/desc/parser.rs:232
↓ 8 callersFunctioncreate_mock_rules
Creates a set of mock lint rules for testing with differing properties.
alpm-lint/src/lint_rules/store.rs:475
↓ 8 callersFunctiondefault_display
Helper function to create a default LintIssueDisplay for testing
alpm-lint/tests/display.rs:11
↓ 8 callersFunctionforce_color_off
Helper function to disable colored output for consistent snapshots
alpm-lint/tests/display.rs:24
↓ 8 callersFunctioninit_logger
Initializes a global [`TermLogger`].
alpm-package/tests/integration.rs:120
↓ 8 callersMethodjoin
Creates an owned PathBuf with path adjoined to self. Delegates to [`Path::join`].
alpm-package/src/package.rs:113
↓ 8 callersFunctionnext_is_none
Helper function to assert that the filtered iterator has no more rules.
alpm-lint/src/lint_rules/store.rs:470
↓ 8 callersFunctionparse
Parse and interpret an MTREE file. 1. Reads the contents of a file or stdin. 2. Check whether the input is gzip compressed as that's how it's deliver
alpm-mtree/src/commands.rs:88
↓ 8 callersFunctionsection
Parses a single `%SECTION%` block and returns a [`Section`] variant. # Errors Returns an error if: - the section name is invalid or not recognized,
alpm-db/src/desc/parser.rs:260
↓ 8 callersMethodvercmp
(&self, other: FullVersion)
python-alpm/src/types/version.rs:227
↓ 7 callersFunctiondefault_filetimes
Returns a default [`FileTimes`] struct with all times set to UNIX_EPOCH.
alpm-package/tests/integration.rs:134
↓ 7 callersMethodmetadata
Reads all metadata from an [alpm-package] file. This method reads all the metadata entries in the package file and returns a [`Metadata`] struct cont
alpm-package/src/package.rs:836
↓ 7 callersFunctionpush_key_value
Pushes a key-value pair to a [`String`]. Key-value pairs are scoped to a section. To make this visually distinguishable, the key-value pair is indent
alpm-srcinfo/src/source_info/v1/writer.rs:26
↓ 7 callersMethodread_to_end
(&mut self, buf: &mut Vec<u8>)
alpm-compress/src/decompression/decoder.rs:87
↓ 7 callersFunctionrun_bridge_script
Runs the [`alpm-pkgbuild-bridge`] script, which exposes all relevant information of a [`PKGBUILD`] in a custom format. Returns the output of that scr
alpm-pkgbuild/src/bridge/mod.rs:59
↓ 7 callersFunctionsource_info_from_resource
Extracts a [`SourceInfoV1`] from a [`Resources`]. # Note The `lint_rule` needs to be provided to provide a meaningful message in case of an error.
alpm-lint/src/lint_rules/source_info/mod.rs:26
↓ 7 callersMethodto_path_buf
Returns an absolute path as combination of base directory and relative path.
alpm-common/src/package/input.rs:68
↓ 6 callersMethodbase_dir
Returns a reference to the base dir.
alpm-common/src/package/input.rs:58
↓ 6 callersFunctioncreate
(#[case] schema: RepoDescSchema)
alpm-repo-db/tests/integration.rs:229
↓ 6 callersFunctioncreate
(#[case] schema: DbDescSchema)
alpm-db/tests/desc_cli.rs:225
↓ 6 callersMethodcreate_checksum_issue
Helper function to create a lint issue for unsafe checksum field.
alpm-lint/src/lint_rules/source_info/unsafe_checksum.rs:73
↓ 6 callersFunctiondefault_filetime
Returns a default [`FileTime`] struct with all times set to UNIX_EPOCH.
alpm-mtree/tests/validate.rs:111
↓ 6 callersMethodentries
Returns an iterator over the known files in the [alpm-package] file. This iterator yields a set of [`PackageEntry`] variants, which may only contain
alpm-package/src/package.rs:750
↓ 6 callersMethodinput_dir
Returns the input directory of the [`PackageInput`] as [`Path`] reference.
alpm-package/src/input.rs:516
↓ 6 callersMethodis_file
Checks whether the [`TarballEntry`] represents a regular file. Returns `true` if the [`TarballEntry`] represents a regular file, `false` otherwise.
alpm-compress/src/tarball/reader.rs:192
↓ 6 callersMethodis_skipped
Determines whether the [`SkippableChecksum`] is skipped. Checksums are considered skipped if they are of the variant [`SkippableChecksum::Skip`].
alpm-types/src/checksum.rs:506
↓ 6 callersFunctionmakepkg_option_from_str
(option: &str)
python-alpm/src/types/env.rs:39
↓ 6 callersFunctionparse
Parses and interprets a SRCINFO file from a path or stdin. ## Note If a command is piped to this process, the input is read from stdin. See [`IsTerm
alpm-srcinfo/src/commands.rs:164
↓ 6 callersFunctionparse_optional_value
Ensures a combination of [`Keyword`] and [`Value`] uses a [`Value::Single`] and parses the value as a specific, but optional type. Returns [`None`] i
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:155
↓ 6 callersFunctionschema_fixture
Convenience fixture helper
alpm-db/tests/desc_cli.rs:161
↓ 6 callersMethodto_path_buf
Converts a Path to an owned PathBuf.
alpm-package/src/config.rs:76
↓ 5 callersMethodas_ref
Returns a reference to the inner [`Vec`] of [`PathBuf`]s.
alpm-repo-db/src/files/v1.rs:204
↓ 5 callersMethodas_srcinfo
Returns the [SRCINFO] representation. ``` use std::{env::var, path::PathBuf}; use alpm_srcinfo::SourceInfoV1; const TEST_FILE: &str = include_str!(
alpm-srcinfo/src/source_info/v1/mod.rs:69
↓ 5 callersFunctioncreate_mtree_v2_from_input_dir
Creates a new [ALPM-MTREEv2] 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:33
↓ 5 callersMethodderive_from_file
(path: std::path::PathBuf)
python-alpm/src/srcinfo/schema.rs:29
↓ 5 callersMethodget_or_insert
(&mut self, default: T)
alpm-srcinfo/src/source_info/v1/package.rs:76
↓ 5 callersMethodinner
Returns a reference to the inner [`SchemaVersion`].
alpm-db/src/files/schema.rs:28
↓ 5 callersMethodinto_py_dict
(self, py: Python)
python-alpm/src/types/url.rs:129
↓ 5 callersMethodnext
Get the next [VersionSegment] of this version string.
alpm-types/src/version/comparison.rs:179
↓ 5 callersFunctionnormalize_mtree_path
Normalizes a [`std::path::Path`] by stripping the prefix [`MTREE_PATH_PREFIX`]. # Errors Returns an [`alpm_common::Error`] if the prefix can not be
alpm-mtree/src/mtree/v2.rs:136
↓ 5 callersFunctionparse_clearable_value_array
Parses all elements of a [`ClearableValue`] as a [`Vec`] of specific types. # Legacy support This does not differentiate between [`ClearableValue::S
alpm-srcinfo/src/pkgbuild_bridge/package.rs:211
↓ 5 callersFunctionparse_value_array
Parses a [`Value`] as a [`Vec`] of specific types. Does not differentiate between [`Value::Single`] and [`Value::Array`] variants, as a [`PKGBUILD`]
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:181
↓ 5 callersMethodpath
Returns the path of the entry in the archive.
alpm-compress/src/tarball/reader.rs:152
↓ 5 callersFunctionprepare_input_dir
Prepares the input directory with all necessary files for package creation.
alpm-package/tests/integration.rs:256
↓ 5 callersFunctionschema_fixture
Convenience fixture helper
alpm-repo-db/tests/integration.rs:165
next →1–100 of 1,873, ranked by callers