MCPcopy Create free account

hub / github.com/alexykn/sps2 / functions

Functions2,023 in github.com/alexykn/sps2

↓ 4 callersMethodsession_id
(&self)
crates/builder/src/core/context.rs:83
↓ 4 callersFunctionupdate_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 callersMethodwith_builder
(mut self, builder: Builder)
crates/ops/src/context.rs:156
↓ 4 callersMethodwith_config
(mut self, config: Config)
crates/ops/src/context.rs:168
↓ 4 callersMethodwith_index
(mut self, index: IndexManager)
crates/ops/src/context.rs:138
↓ 4 callersMethodwith_state
(mut self, state: StateManager)
crates/ops/src/context.rs:132
↓ 4 callersMethodwrite_journal
Atomically writes the journal file # Errors Returns an error if file write or rename fails
crates/state/src/manager.rs:1165
↓ 4 callersFunctionwrite_manifest
Write `manifest.toml` to a path # Errors Returns an error if serialization or writing fails.
crates/store/src/manifest_io.rs:28
↓ 3 callersMethodacquire_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 callersFunctionacquire_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 callersMethodadd_hardcoded_path
Add a hardcoded path finding
crates/builder/src/artifact_qa/diagnostics.rs:95
↓ 3 callersMethodadd_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 callersMethodalgorithm
(&self)
crates/hash/src/lib.rs:70
↓ 3 callersMethodallow_network
(&mut self, allow: bool)
crates/builder/src/core/api.rs:73
↓ 3 callersMethodarg
Add an argument to the command
crates/platform/src/process/mod.rs:31
↓ 3 callersMethodassign
Assign a variable
crates/resolver/src/sat/types.rs:232
↓ 3 callersFunctionatomic_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 callersFunctionbinary_context
(operation: &str, target: &Path)
crates/platform/src/implementations/macos/binary.rs:37
↓ 3 callersFunctioncheck_arguments_for_paths
Check arguments for paths and validate them
crates/builder/src/security/parser.rs:501
↓ 3 callersMethodcheck_uv_available
Check if uv is available
crates/builder/src/build_systems/python.rs:78
↓ 3 callersFunctionclause_ref
(clause: Clause)
crates/resolver/src/sat/clause.rs:257
↓ 3 callersMethodcleanup_old_states
Cleanup old states according to retention policy
crates/install/src/installer.rs:180
↓ 3 callersMethodclear
Clear all cached entries
crates/builder/src/cache.rs:154
↓ 3 callersMethodclone_file
Convenience method: Clone a file using APFS clonefile
crates/platform/src/core/mod.rs:940
↓ 3 callersFunctioncopy_directory_recursive
Recursively copy directory contents
crates/builder/src/utils/fileops.rs:8
↓ 3 callersFunctioncreate_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 callersFunctioncreate_semaphore
(permits: usize)
crates/config/src/resources_semaphore.rs:78
↓ 3 callersFunctioncreate_state
Insert a new state row # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:57
↓ 3 callersMethodcurrent_correlation
(&self)
crates/ops/src/context.rs:81
↓ 3 callersMethodemit_operation_failed
Emit an operation failed event
crates/events/src/lib.rs:193
↓ 3 callersMethodemit_tool_operation_completed
( &self, operation: &str, tool: &str, path: Option<&Path>, duration: O
crates/platform/src/core/mod.rs:365
↓ 3 callersMethodensure_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 callersMethodexecute_parallel
( &self, execution_plan: &ExecutionPlan, resolved_packages: &HashMap<PackageId, Resolv
crates/install/src/prepare/executor.rs:68
↓ 3 callersMethodextract_compressed_tar
Extract compressed tar archive using async-compression
crates/builder/src/core/api.rs:988
↓ 3 callersMethodfiles_path
(&self)
crates/store/src/package.rs:92
↓ 3 callersFunctionfilesystem_context
( operation: &str, source: Option<&Path>, target: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:61
↓ 3 callersMethodgenerate_diagnostic_messages
(&self)
crates/builder/src/artifact_qa/diagnostics.rs:184
↓ 3 callersMethodget_dependencies
Convenience method: Get binary dependencies
crates/platform/src/core/mod.rs:950
↓ 3 callersMethodget_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/cargo.rs:448
↓ 3 callersFunctionget_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 callersMethodget_package_versions_with_strings
( &self, name: &str, )
crates/index/src/lib.rs:122
↓ 3 callersFunctionget_state_package_count
Get package count for a specific state
crates/ops/src/maintenance.rs:651
↓ 3 callersFunctionget_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 callersMethodget_stats
Return summary statistics without performing verification.
crates/guard/src/store.rs:89
↓ 3 callersMethodget_trusted_keys
(&self)
crates/ops/src/keys.rs:293
↓ 3 callersMethodget_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 callersMethodhas_findings
(&self)
crates/builder/src/artifact_qa/diagnostics.rs:134
↓ 3 callersMethodhash_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 callersMethodis_assigned
(self)
crates/resolver/src/sat/types.rs:130
↓ 3 callersMethodis_executable
Check if a file is executable
crates/platform/src/core/mod.rs:646
↓ 3 callersMethodis_python_package
(&self)
crates/builder/src/environment/core.rs:182
↓ 3 callersMethodis_within_build_root
Check if a path is within the build root
crates/builder/src/security/context.rs:264
↓ 3 callersMethodlifecycle_operation
Returns the lifecycle operation enum
crates/ops/src/update.rs:45
↓ 3 callersFunctionlist_recursive
( dir: &Path, file_map: &HashMap<String, Vec<String>>, long_format: bool, hash_only: bool,
apps/sls/src/main.rs:199
↓ 3 callersMethodmerge_compiler_flags
Helper to merge compiler flags without duplicating
crates/builder/src/environment/variables.rs:256
↓ 3 callersMethodmetadata_path
Get the index metadata file path (for `ETag`, etc.)
crates/index/src/cache.rs:28
↓ 3 callersFunctionmk_env
()
crates/install/src/prepare/executor.rs:398
↓ 3 callersMethodoperation_name
Returns the operation name as a string
crates/ops/src/update.rs:37
↓ 3 callersFunctionparse_from_str
(value: &str)
crates/types/src/recipe.rs:113
↓ 3 callersFunctionparse_from_str
(value: &str)
crates/builder/src/environment/types.rs:168
↓ 3 callersMethodphases
Get all phases
crates/events/src/progress/tracker.rs:352
↓ 3 callersFunctionprocess_context
(descriptor: ProcessCommandDescriptor)
crates/platform/src/implementations/macos/process.rs:38
↓ 3 callersMethodprocess_file
Process a single file for RPATH and install name fixes
crates/builder/src/artifact_qa/patchers/rpath.rs:233
↓ 3 callersMethodpush_correlation_for_packages
( &self, operation: &str, packages: &[String], )
crates/ops/src/context.rs:57
↓ 3 callersMethodread_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 callersFunctionremove_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 callersMethodretry_request
Execute a request with retries
crates/net/src/client.rs:218
↓ 3 callersMethodrun
(&self, level: VerificationLevel, heal: bool)
crates/guard/src/verifier.rs:184
↓ 3 callersMethodsave
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 callersFunctionseed_parent_with_pkg
( state: &StateManager, name: &str, version: &str, pkg_hash_hex: &str,
crates/state/src/manager.rs:1412
↓ 3 callersMethodset_current_dir
Update the current working directory
crates/builder/src/security/context.rs:327
↓ 3 callersMethodstore_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 callersMethodto_json
Convert to JSON string # Errors Returns an error if JSON serialization fails.
crates/ops/src/lib.rs:175
↓ 3 callersFunctiontry_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 callersFunctiontry_prepare_from_store
( package_id: &PackageId, node: &ResolvedNode, store: &PackageStore, state_manager: &StateMana
crates/install/src/prepare/worker.rs:379
↓ 3 callersMethodupdate_phase_to_done
Change to a specific phase by name and mark it as done
crates/events/src/progress/manager.rs:280
↓ 3 callersMethodused_build_systems
(&self)
crates/builder/src/environment/core.rs:214
↓ 3 callersMethodvalidate_version
( &self, package_version: &PackageFormatVersion, )
crates/types/src/format.rs:326
↓ 3 callersFunctionverify_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 callersMethodwith_force_redownload
(mut self, force: bool)
crates/install/src/prepare/context.rs:44
↓ 3 callersMethodwith_session_id
(mut self, session_id: impl Into<String>)
crates/builder/src/core/context.rs:76
↓ 2 callersMethodabsorb
Add another report’s data into `self`.
crates/builder/src/artifact_qa/reports.rs:32
↓ 2 callersMethodadd_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 callersMethodadd_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 callersMethodadd_package_version
Add a package version to the problem
crates/resolver/src/sat/mod.rs:72
↓ 2 callersFunctionadd_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 callersMethodall_packages
Get all package names
crates/resolver/src/sat/variable_map.rs:77
↓ 2 callersMethodanalyze_conflict
Analyze conflict for external explanation
crates/resolver/src/sat/solver.rs:452
↓ 2 callersFunctionapply_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 callersMethodapply_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 callersFunctionassert_parent_meta
( meta: &EventMeta, root_event_id: Uuid, parent_label: &str, is_root: bool,
crates/events/src/progress/manager.rs:451
↓ 2 callersMethodbacktrack_to
Backtrack to a given level
crates/resolver/src/sat/solver.rs:425
↓ 2 callersFunctionbinary_metrics
(duration: Duration, changes: Option<Vec<String>>)
crates/platform/src/implementations/macos/binary.rs:47
↓ 2 callersMethodbuild_wheel_pep517
Build wheel using PEP 517
crates/builder/src/build_systems/python.rs:208
↓ 2 callersMethodbump_variable
Bump activity of a single variable
crates/resolver/src/sat/conflict_analysis.rs:235
↓ 2 callersFunctioncalculate_existing_file_hash
Calculate hash of existing file content for resume
crates/net/src/download/resume.rs:49
↓ 2 callersFunctioncalculate_file_storage_path
(hash: &Hash)
crates/hash/src/file_hasher.rs:307
↓ 2 callersMethodcan_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 callersMethodchange_dependency
( &self, ctx: &PlatformContext, binary: &Path, old: &str, new: &str,
crates/platform/src/implementations/macos/binary.rs:281
↓ 2 callersMethodchange_phase
Change to a specific phase
crates/events/src/progress/manager.rs:244
← previousnext →201–300 of 2,023, ranked by callers