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
↓ 4 callers
Method
session_id
(&self)
crates/builder/src/core/context.rs:83
↓ 4 callers
Function
update_verification_status
Update verification status for a hash. # Errors Returns an error if the database operation fails.
crates/state/src/file_queries_runtime.rs:801
↓ 4 callers
Method
with_builder
(mut self, builder: Builder)
crates/ops/src/context.rs:156
↓ 4 callers
Method
with_config
(mut self, config: Config)
crates/ops/src/context.rs:168
↓ 4 callers
Method
with_index
(mut self, index: IndexManager)
crates/ops/src/context.rs:138
↓ 4 callers
Method
with_state
(mut self, state: StateManager)
crates/ops/src/context.rs:132
↓ 4 callers
Method
write_journal
Atomically writes the journal file # Errors Returns an error if file write or rename fails
crates/state/src/manager.rs:1165
↓ 4 callers
Function
write_manifest
Write `manifest.toml` to a path # Errors Returns an error if serialization or writing fails.
crates/store/src/manifest_io.rs:28
↓ 3 callers
Method
acquire_download_permit
Acquire a download permit # Errors Returns an error if the semaphore is closed or acquisition fails.
crates/config/src/resources_manager.rs:57
↓ 3 callers
Function
acquire_semaphore_permit
Acquire a semaphore permit with proper error handling This helper function provides consistent error handling for semaphore acquisition across all mo
crates/config/src/resources_semaphore.rs:23
↓ 3 callers
Method
add_hardcoded_path
Add a hardcoded path finding
crates/builder/src/artifact_qa/diagnostics.rs:95
↓ 3 callers
Method
add_package_map
Add a package to the package map # Errors Returns an error if the database operation fails.
crates/state/src/manager.rs:1001
↓ 3 callers
Method
algorithm
(&self)
crates/hash/src/lib.rs:70
↓ 3 callers
Method
allow_network
(&mut self, allow: bool)
crates/builder/src/core/api.rs:73
↓ 3 callers
Method
arg
Add an argument to the command
crates/platform/src/process/mod.rs:31
↓ 3 callers
Method
assign
Assign a variable
crates/resolver/src/sat/types.rs:232
↓ 3 callers
Function
atomic_rename
Atomic rename with swap support This function uses macOS `renamex_np` with `RENAME_SWAP` when both paths exist, or regular rename when only source ex
crates/platform/src/fs.rs:69
↓ 3 callers
Function
binary_context
(operation: &str, target: &Path)
crates/platform/src/implementations/macos/binary.rs:37
↓ 3 callers
Function
check_arguments_for_paths
Check arguments for paths and validate them
crates/builder/src/security/parser.rs:501
↓ 3 callers
Method
check_uv_available
Check if uv is available
crates/builder/src/build_systems/python.rs:78
↓ 3 callers
Function
clause_ref
(clause: Clause)
crates/resolver/src/sat/clause.rs:257
↓ 3 callers
Method
cleanup_old_states
Cleanup old states according to retention policy
crates/install/src/installer.rs:180
↓ 3 callers
Method
clear
Clear all cached entries
crates/builder/src/cache.rs:154
↓ 3 callers
Method
clone_file
Convenience method: Clone a file using APFS clonefile
crates/platform/src/core/mod.rs:940
↓ 3 callers
Function
copy_directory_recursive
Recursively copy directory contents
crates/builder/src/utils/fileops.rs:8
↓ 3 callers
Function
create_and_sign_package
Create package archive and sign it # Errors Returns an error if: - Package creation fails - Package signing fails (when enabled)
crates/builder/src/packaging/mod.rs:32
↓ 3 callers
Function
create_semaphore
(permits: usize)
crates/config/src/resources_semaphore.rs:78
↓ 3 callers
Function
create_state
Insert a new state row # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:57
↓ 3 callers
Method
current_correlation
(&self)
crates/ops/src/context.rs:81
↓ 3 callers
Method
emit_operation_failed
Emit an operation failed event
crates/events/src/lib.rs:193
↓ 3 callers
Method
emit_tool_operation_completed
( &self, operation: &str, tool: &str, path: Option<&Path>, duration: O
crates/platform/src/core/mod.rs:365
↓ 3 callers
Method
ensure_store_ref
Ensure store reference exists for a hash # Errors Returns an error if the database operation fails.
crates/state/src/manager.rs:989
↓ 3 callers
Method
execute_parallel
( &self, execution_plan: &ExecutionPlan, resolved_packages: &HashMap<PackageId, Resolv
crates/install/src/prepare/executor.rs:68
↓ 3 callers
Method
extract_compressed_tar
Extract compressed tar archive using async-compression
crates/builder/src/core/api.rs:988
↓ 3 callers
Method
files_path
(&self)
crates/store/src/package.rs:92
↓ 3 callers
Function
filesystem_context
( operation: &str, source: Option<&Path>, target: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:61
↓ 3 callers
Method
generate_diagnostic_messages
(&self)
crates/builder/src/artifact_qa/diagnostics.rs:184
↓ 3 callers
Method
get_dependencies
Convenience method: Get binary dependencies
crates/platform/src/core/mod.rs:950
↓ 3 callers
Method
get_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/cargo.rs:448
↓ 3 callers
Function
get_package_file_entries_by_name
Fetch package file entries for a state + name + version. # Errors Returns an error if the database operation fails.
crates/state/src/file_queries_runtime.rs:498
↓ 3 callers
Method
get_package_versions_with_strings
( &self, name: &str, )
crates/index/src/lib.rs:122
↓ 3 callers
Function
get_state_package_count
Get package count for a specific state
crates/ops/src/maintenance.rs:651
↓ 3 callers
Function
get_states_for_cleanup_strict
Strict retention: keep only N newest states # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:476
↓ 3 callers
Method
get_stats
Return summary statistics without performing verification.
crates/guard/src/store.rs:89
↓ 3 callers
Method
get_trusted_keys
(&self)
crates/ops/src/keys.rs:293
↓ 3 callers
Method
get_with_headers
Execute a GET request with custom headers and retries # Errors Returns an error if the request fails after all retry attempts, including network tim
crates/net/src/client.rs:120
↓ 3 callers
Method
has_findings
(&self)
crates/builder/src/artifact_qa/diagnostics.rs:134
↓ 3 callers
Method
hash_file_with_metadata
Hash a single file and collect metadata # Errors Returns an error if the file cannot be read or metadata cannot be accessed
crates/hash/src/file_hasher.rs:69
↓ 3 callers
Method
is_assigned
(self)
crates/resolver/src/sat/types.rs:130
↓ 3 callers
Method
is_executable
Check if a file is executable
crates/platform/src/core/mod.rs:646
↓ 3 callers
Method
is_python_package
(&self)
crates/builder/src/environment/core.rs:182
↓ 3 callers
Method
is_within_build_root
Check if a path is within the build root
crates/builder/src/security/context.rs:264
↓ 3 callers
Method
lifecycle_operation
Returns the lifecycle operation enum
crates/ops/src/update.rs:45
↓ 3 callers
Function
list_recursive
( dir: &Path, file_map: &HashMap<String, Vec<String>>, long_format: bool, hash_only: bool,
apps/sls/src/main.rs:199
↓ 3 callers
Method
merge_compiler_flags
Helper to merge compiler flags without duplicating
crates/builder/src/environment/variables.rs:256
↓ 3 callers
Method
metadata_path
Get the index metadata file path (for `ETag`, etc.)
crates/index/src/cache.rs:28
↓ 3 callers
Function
mk_env
()
crates/install/src/prepare/executor.rs:398
↓ 3 callers
Method
operation_name
Returns the operation name as a string
crates/ops/src/update.rs:37
↓ 3 callers
Function
parse_from_str
(value: &str)
crates/types/src/recipe.rs:113
↓ 3 callers
Function
parse_from_str
(value: &str)
crates/builder/src/environment/types.rs:168
↓ 3 callers
Method
phases
Get all phases
crates/events/src/progress/tracker.rs:352
↓ 3 callers
Function
process_context
(descriptor: ProcessCommandDescriptor)
crates/platform/src/implementations/macos/process.rs:38
↓ 3 callers
Method
process_file
Process a single file for RPATH and install name fixes
crates/builder/src/artifact_qa/patchers/rpath.rs:233
↓ 3 callers
Method
push_correlation_for_packages
( &self, operation: &str, packages: &[String], )
crates/ops/src/context.rs:57
↓ 3 callers
Method
read_journal
Reads and deserializes the journal file, if it exists # Errors Returns an error if file read or deserialization fails
crates/state/src/manager.rs:1183
↓ 3 callers
Function
remove_package_from_staging
Remove package files from staging directory This function: - Queries the database for all files belonging to the package - Removes files in safe orde
crates/install/src/atomic/package.rs:294
↓ 3 callers
Method
retry_request
Execute a request with retries
crates/net/src/client.rs:218
↓ 3 callers
Method
run
(&self, level: VerificationLevel, heal: bool)
crates/guard/src/verifier.rs:184
↓ 3 callers
Method
save
Save configuration to the default location # Errors Returns an error if the configuration cannot be serialized or if the file cannot be written.
crates/config/src/lib.rs:343
↓ 3 callers
Function
seed_parent_with_pkg
( state: &StateManager, name: &str, version: &str, pkg_hash_hex: &str,
crates/state/src/manager.rs:1412
↓ 3 callers
Method
set_current_dir
Update the current working directory
crates/builder/src/security/context.rs:327
↓ 3 callers
Method
store_directory
Store all files from a directory Returns a list of file hash results # Errors Returns an error if directory traversal or file operations fail
crates/store/src/file_store.rs:236
↓ 3 callers
Method
to_json
Convert to JSON string # Errors Returns an error if JSON serialization fails.
crates/ops/src/lib.rs:175
↓ 3 callers
Function
try_acquire_semaphore_permit
Try to acquire a semaphore permit without waiting This helper function attempts to acquire a semaphore permit immediately without blocking. Useful fo
crates/config/src/resources_semaphore.rs:52
↓ 3 callers
Function
try_prepare_from_store
( package_id: &PackageId, node: &ResolvedNode, store: &PackageStore, state_manager: &StateMana
crates/install/src/prepare/worker.rs:379
↓ 3 callers
Method
update_phase_to_done
Change to a specific phase by name and mark it as done
crates/events/src/progress/manager.rs:280
↓ 3 callers
Method
used_build_systems
(&self)
crates/builder/src/environment/core.rs:214
↓ 3 callers
Method
validate_version
( &self, package_version: &PackageFormatVersion, )
crates/types/src/format.rs:326
↓ 3 callers
Function
verify_minisign_bytes_with_keys
Verify raw bytes against a minisign signature string using any of the provided trusted keys. # Errors Returns an error if: - The signature string ca
crates/net/src/signing.rs:79
↓ 3 callers
Method
with_force_redownload
(mut self, force: bool)
crates/install/src/prepare/context.rs:44
↓ 3 callers
Method
with_session_id
(mut self, session_id: impl Into<String>)
crates/builder/src/core/context.rs:76
↓ 2 callers
Method
absorb
Add another report’s data into `self`.
crates/builder/src/artifact_qa/reports.rs:32
↓ 2 callers
Method
add_at_most_one_constraint
Add constraint: at most one version of a package can be selected # Panics Panics if variables for package versions are not found. This should not ha
crates/resolver/src/sat/mod.rs:98
↓ 2 callers
Method
add_package_from_file
Add package from file with specific name and version # Errors Returns an error if package addition fails
crates/store/src/lib.rs:457
↓ 2 callers
Method
add_package_version
Add a package version to the problem
crates/resolver/src/sat/mod.rs:72
↓ 2 callers
Function
add_package_with_venv
Add package with venv path (venv ignored in v2 schema) # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:911
↓ 2 callers
Method
all_packages
Get all package names
crates/resolver/src/sat/variable_map.rs:77
↓ 2 callers
Method
analyze_conflict
Analyze conflict for external explanation
crates/resolver/src/sat/solver.rs:452
↓ 2 callers
Function
apply_all_refcount_deltas
Apply both archive and file refcount deltas. # Errors Returns an error if either the archive or file refcount operations fail.
crates/state/src/db/refcount_deltas.rs:327
↓ 2 callers
Method
apply_default_compiler_flags
Apply default compiler flags for optimization and security This method sets recommended compiler flags for macOS ARM64 builds. It preserves existing
crates/builder/src/environment/variables.rs:171
↓ 2 callers
Function
assert_parent_meta
( meta: &EventMeta, root_event_id: Uuid, parent_label: &str, is_root: bool,
crates/events/src/progress/manager.rs:451
↓ 2 callers
Method
backtrack_to
Backtrack to a given level
crates/resolver/src/sat/solver.rs:425
↓ 2 callers
Function
binary_metrics
(duration: Duration, changes: Option<Vec<String>>)
crates/platform/src/implementations/macos/binary.rs:47
↓ 2 callers
Method
build_wheel_pep517
Build wheel using PEP 517
crates/builder/src/build_systems/python.rs:208
↓ 2 callers
Method
bump_variable
Bump activity of a single variable
crates/resolver/src/sat/conflict_analysis.rs:235
↓ 2 callers
Function
calculate_existing_file_hash
Calculate hash of existing file content for resume
crates/net/src/download/resume.rs:49
↓ 2 callers
Function
calculate_file_storage_path
(hash: &Hash)
crates/hash/src/file_hasher.rs:307
↓ 2 callers
Method
can_remove_staging
Check if a staging directory can be safely removed A staging directory can only be removed if: 1. No journal file exists, OR 2. The journal file exis
crates/state/src/manager.rs:1218
↓ 2 callers
Method
change_dependency
( &self, ctx: &PlatformContext, binary: &Path, old: &str, new: &str,
crates/platform/src/implementations/macos/binary.rs:281
↓ 2 callers
Method
change_phase
Change to a specific phase
crates/events/src/progress/manager.rs:244
← previous
next →
201–300 of 2,023, ranked by callers