Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexykn/sps2
/ functions
Functions
2,023 in github.com/alexykn/sps2
⨍
Functions
2,023
◇
Types & classes
456
↓ 2 callers
Function
check_load_commands
( file: &MachOFile<'data, Mach, R>, build_paths: &[&str], file_path: &std::path::Path, collect
crates/builder/src/artifact_qa/scanners/macho.rs:151
↓ 2 callers
Function
clone_directory
(src: &Path, dst: &Path)
crates/platform/src/fs.rs:133
↓ 2 callers
Method
clone_directory
( &self, ctx: &PlatformContext, src: &Path, dst: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:215
↓ 2 callers
Function
collect_relative_files
(base: &std::path::Path)
crates/install/src/atomic/installer.rs:428
↓ 2 callers
Method
create_download_tracker
Create standardized download progress tracker
crates/events/src/progress/mod.rs:100
↓ 2 callers
Function
create_manifest
( context: &BuildContext, runtime_deps: Vec<String>, recipe_metadata: &RecipeMetadata, environ
crates/builder/src/packaging/manifest.rs:12
↓ 2 callers
Method
decorate_message
(&self, meta: &EventMeta, message: String)
apps/sps2/src/events.rs:1584
↓ 2 callers
Method
decrement_in_degree
(&self)
crates/resolver/src/execution.rs:47
↓ 2 callers
Function
default_max_concurrent_tasks
()
crates/config/src/guard.rs:325
↓ 2 callers
Function
default_progressive_verification
Default value functions for serde
crates/config/src/guard.rs:321
↓ 2 callers
Function
default_verification_timeout_seconds
()
crates/config/src/guard.rs:329
↓ 2 callers
Function
delete_unreferenced_store_items
Delete archive CAS rows for given hashes # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:513
↓ 2 callers
Function
derive_meta
(event: &AppEvent)
crates/events/src/lib.rs:265
↓ 2 callers
Function
deserialize
(deserializer: D)
crates/errors/src/lib.rs:241
↓ 2 callers
Method
detect_format
Detect package format version from .sp file This method first attempts fast header detection, then falls back to manifest parsing if needed. # Error
crates/store/src/format_detection.rs:50
↓ 2 callers
Function
determine_output_path
Determine output path for package
crates/ops/src/pack.rs:387
↓ 2 callers
Method
domain
(&self)
crates/events/src/events/lifecycle.rs:621
↓ 2 callers
Function
download_file
Download a file with progress reporting # Errors Returns an error if the URL is invalid, the download fails, or there are I/O errors while writing t
crates/net/src/lib.rs:35
↓ 2 callers
Method
download_package
Core download function requires all parameters for operation
crates/net/src/download/core.rs:73
↓ 2 callers
Method
download_with_resume
( &self, url: &str, dest_path: &Path, expected_hash: Option<&Hash>, pr
crates/net/src/download/core.rs:357
↓ 2 callers
Function
emit_qa_check
( ctx: &BuildContext, target: &QaTarget, category: &str, action_name: &str, report: &Repor
crates/builder/src/artifact_qa/mod.rs:421
↓ 2 callers
Method
emit_tool_operation_failed
( &self, operation: &str, tool: &str, path: Option<&Path>, failure: &P
crates/platform/src/core/mod.rs:382
↓ 2 callers
Method
emit_tool_operation_started
(&self, operation: &str, tool: &str, path: Option<&Path>)
crates/platform/src/core/mod.rs:358
↓ 2 callers
Function
ensure_file_verification_row
Helper to ensure a `file_verification` row exists.
crates/state/src/file_queries_runtime.rs:85
↓ 2 callers
Method
ensure_slot_dir
Ensure the given slot directory exists and return its path. # Errors Returns an error if creating the directory fails.
crates/state/src/manager.rs:241
↓ 2 callers
Method
env_vars
(&self)
crates/builder/src/environment/core.rs:154
↓ 2 callers
Method
envs
Set multiple environment variables for the command
crates/platform/src/process/mod.rs:66
↓ 2 callers
Method
evaluate
(&self, assignment: &Assignment)
crates/resolver/src/sat/clause.rs:97
↓ 2 callers
Method
execute_command
Convenience method: Execute a command and get output
crates/platform/src/core/mod.rs:959
↓ 2 callers
Method
execute_command
Execute a command in the build environment using the environment stored on the struct. # Errors Returns an error if the command fails to spawn or ex
crates/builder/src/environment/execution.rs:27
↓ 2 callers
Function
execute_post_step_with_security
Execute a post-processing step with security context # Errors Returns an error if: - Security validation fails for command execution - Command is di
crates/builder/src/stages/executors.rs:230
↓ 2 callers
Function
execute_source_step
Execute a source step
crates/builder/src/stages/executors.rs:43
↓ 2 callers
Method
execute_two_phase_commit
Execute two-phase commit flow for a transition
crates/install/src/atomic/installer.rs:48
↓ 2 callers
Method
expand_variables
(&self, input: &str)
crates/builder/src/security/context.rs:155
↓ 2 callers
Function
extract_archive_entries
Extract entries from a tar archive with security checks
crates/store/src/archive.rs:396
↓ 2 callers
Function
extract_base64
(pk_input: &str)
crates/repository/src/lib.rs:252
↓ 2 callers
Function
extract_package
Extract a .sp package file to a directory # Errors Returns an error if: - Tar extraction fails - The extracted package is missing manifest.toml - I/
crates/store/src/archive.rs:29
↓ 2 callers
Method
extract_tar_bz2
Extract tar.bz2 archive # Errors Returns an error if extraction fails.
crates/builder/src/core/api.rs:871
↓ 2 callers
Method
extract_tar_gz
Extract tar.gz archive # Errors Returns an error if extraction fails.
crates/builder/src/core/api.rs:861
↓ 2 callers
Method
extract_zip
Extract zip archive # Errors Returns an error if extraction fails.
crates/builder/src/core/api.rs:891
↓ 2 callers
Method
file_hashes
(&self)
crates/store/src/package.rs:86
↓ 2 callers
Method
filename
(&self)
crates/types/src/manifest.rs:234
↓ 2 callers
Function
filesystem_metrics
( duration: Duration, changes: Option<Vec<String>>, )
crates/platform/src/implementations/macos/filesystem.rs:75
↓ 2 callers
Method
find_wheel_in_dir
Find wheel file in directory
crates/builder/src/build_systems/python.rs:289
↓ 2 callers
Function
fix_file_permissions
Fix permissions on a file if needed
crates/builder/src/core/api.rs:1504
↓ 2 callers
Method
force_redownload
(&self)
crates/install/src/prepare/context.rs:51
↓ 2 callers
Function
format_size
(bytes: u64)
apps/sls/src/main.rs:531
↓ 2 callers
Method
format_version
(&self)
crates/types/src/manifest.rs:172
↓ 2 callers
Method
garbage_collect
Garbage collect unreferenced packages # Errors Currently returns success, but may return errors in future implementations when state manager integra
crates/store/src/lib.rs:383
↓ 2 callers
Method
gc_timestamp_path
Get the path to the GC timestamp file
apps/sps2/src/setup.rs:435
↓ 2 callers
Function
get_all_file_objects
Fetch all file objects. # Errors Returns an error if the database operation fails.
crates/state/src/file_queries_runtime.rs:315
↓ 2 callers
Function
get_all_states
List all states with metadata # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:391
↓ 2 callers
Method
get_args
Get the arguments
crates/platform/src/process/mod.rs:85
↓ 2 callers
Method
get_current_dir
Get the current directory
crates/platform/src/process/mod.rs:90
↓ 2 callers
Method
get_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/go.rs:371
↓ 2 callers
Function
get_file_object
Fetch a file object. # Errors Returns an error if the database operation fails.
crates/state/src/file_queries_runtime.rs:279
↓ 2 callers
Method
get_files_with_hardcoded_paths
(&self)
crates/builder/src/artifact_qa/diagnostics.rs:206
↓ 2 callers
Function
get_initial_state_changes
Get changes for initial state (all packages are installs)
crates/ops/src/maintenance.rs:716
↓ 2 callers
Method
get_install_name
Get the install name of a Mach-O file using platform abstraction
crates/builder/src/artifact_qa/patchers/rpath.rs:72
↓ 2 callers
Method
get_package_dependents
Get package dependents # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:489
↓ 2 callers
Function
get_package_files
Fetch package file paths for a given version # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:787
↓ 2 callers
Method
get_package_versions
(&self, name: &str)
crates/resolver/src/resolver.rs:615
↓ 2 callers
Method
get_parent_state_id
Get parent state ID # Errors Returns an error if database operations fail.
crates/state/src/manager.rs:911
↓ 2 callers
Method
get_prefix
Get styled prefix for event severity
apps/sps2/src/events.rs:47
↓ 2 callers
Function
get_rollback_state_info_with_changes
Get rollback state information with pre-calculated changes
crates/ops/src/maintenance.rs:614
↓ 2 callers
Method
get_state_packages
Get packages in a state # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:782
↓ 2 callers
Method
get_store_hash_for_package_hash
Get the store hash associated with a package archive hash # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:1035
↓ 2 callers
Method
get_tool_version
Get tool version if possible
crates/platform/src/core/mod.rs:674
↓ 2 callers
Method
get_trend
Get recent trend direction (acceleration/deceleration)
crates/events/src/progress/speed.rs:155
↓ 2 callers
Function
get_unreferenced_store_items
Alias for `get_unreferenced_items` (kept for callers) # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:502
↓ 2 callers
Function
get_validators_for_profile
(profile: BuildSystemProfile)
crates/builder/src/artifact_qa/router.rs:75
↓ 2 callers
Method
has_package
Check if a package exists in the store
crates/store/src/lib.rs:91
↓ 2 callers
Method
head
Execute a HEAD request with retries # Errors Returns an error if the request fails after all retry attempts, including network timeouts, connection
crates/net/src/client.rs:176
↓ 2 callers
Method
import_key
Import a new key into the trusted set # Errors Returns an error if: - The trusted keys cannot be saved to disk
crates/ops/src/keys.rs:310
↓ 2 callers
Method
index
(&self)
crates/index/src/lib.rs:80
↓ 2 callers
Method
initialize_with_bootstrap
Initialize the key manager with a bootstrap key # Errors Returns an error if: - The keys directory cannot be created - The bootstrap key string cann
crates/ops/src/keys.rs:80
↓ 2 callers
Function
insert_gc_log
Insert GC run entry # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:886
↓ 2 callers
Function
install
Complex orchestration function coordinating multiple subsystems
crates/ops/src/install.rs:30
↓ 2 callers
Method
install
Install packages # Errors Returns an error if package resolution fails, download fails, or installation fails.
crates/install/src/installer.rs:56
↓ 2 callers
Method
is_retryable
(&self)
crates/errors/src/ops.rs:77
↓ 2 callers
Method
is_upgrade
Returns true if this is upgrade mode
crates/ops/src/update.rs:32
↓ 2 callers
Method
link_file
Link a stored file to a destination # Errors Returns an error if the file doesn't exist or linking fails
crates/store/src/file_store.rs:191
↓ 2 callers
Method
link_files
Link files from hash results to a destination directory # Errors Returns an error if linking operations fail
crates/store/src/file_store.rs:279
↓ 2 callers
Function
link_package_to_staging
Link package from store to staging directory This is a wrapper around the `fs::link_package_to_staging` function that maintains backward compatibilit
crates/install/src/atomic/package.rs:275
↓ 2 callers
Method
link_to
Link package contents to a destination # Errors Returns an error if file linking operations fail or the package lacks file-level hashes (legacy pack
crates/store/src/package.rs:123
↓ 2 callers
Function
list_packages
( store_path: &Path, package_map: &HashMap<String, (String, String)>, long_format: bool, recur
apps/sls/src/main.rs:586
↓ 2 callers
Method
list_states
List available states for rollback # Errors Returns an error if querying the state database fails.
crates/install/src/installer.rs:127
↓ 2 callers
Method
live_path
(&self)
crates/config/src/lib.rs:327
↓ 2 callers
Function
looks_like_path
Heuristic to detect if an argument looks like a path
crates/builder/src/security/parser.rs:519
↓ 2 callers
Method
make
Run make step only # Errors Returns an error if the make command fails.
crates/builder/src/core/api.rs:681
↓ 2 callers
Method
make_discrepancy
( &self, package: &sps2_state::models::Package, entry: &PackageFileEntry, stat
crates/guard/src/verifier.rs:423
↓ 2 callers
Function
maybe_prompt_pass
(current: Option<String>, prompt: &str)
apps/sbs/src/main.rs:196
↓ 2 callers
Function
minisign_sign_bytes
Sign raw bytes with a Minisign secret key file and return the signature string. The secret key file is expected to be in Minisign "secret key box" fo
crates/net/src/signing.rs:122
↓ 2 callers
Function
mk_env
()
crates/install/src/atomic/package.rs:343
↓ 2 callers
Function
mk_state
()
crates/state/tests/recovery.rs:10
↓ 2 callers
Method
name
(&self)
crates/builder/src/build_systems/go.rs:415
↓ 2 callers
Method
needs_install_name_fix
Check if an install name needs fixing based on the style
crates/builder/src/artifact_qa/patchers/rpath.rs:77
↓ 2 callers
Function
normalize_file_permissions
Normalize file permissions for deterministic output Ensures consistent permissions across different filesystems and umask settings
crates/builder/src/packaging/archive.rs:187
↓ 2 callers
Method
output_path
(&self)
crates/builder/src/core/context.rs:100
↓ 2 callers
Function
pack_from_recipe_impl
Internal implementation for recipe-based packaging
crates/ops/src/pack.rs:136
← previous
next →
301–400 of 2,023, ranked by callers