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
Method
packages_in_order
(&self)
crates/resolver/src/lib.rs:115
↓ 2 callers
Method
packaging_settings
(&self)
crates/builder/src/config.rs:66
↓ 2 callers
Function
parse_install_requests
Parse install requests from string specifications
crates/ops/src/install.rs:562
↓ 2 callers
Method
path_for
(&self, key: &str)
crates/repository/src/lib.rs:43
↓ 2 callers
Function
preview_uninstall
(ctx: &OpsCtx, package_names: &[String])
crates/ops/src/uninstall.rs:90
↓ 2 callers
Function
process_metrics
(duration: Duration, output: Option<&CommandOutput>)
crates/platform/src/implementations/macos/process.rs:48
↓ 2 callers
Method
put_object
(&self, key: &str, bytes: &[u8])
crates/repository/src/lib.rs:50
↓ 2 callers
Method
ready_packages
(&self)
crates/resolver/src/execution.rs:207
↓ 2 callers
Method
record_slot_state
Record (or clear) the state marker for a slot and persist metadata. # Errors Returns an error if writing the marker or persisting metadata fails.
crates/state/src/live_slots.rs:133
↓ 2 callers
Function
report_progress
Report progress update
crates/net/src/download/stream.rs:93
↓ 2 callers
Method
requires_migration_from
(&self, other: &Self)
crates/types/src/format.rs:100
↓ 2 callers
Method
restore_file
( &self, stored_package: &StoredPackage, package: &sps2_state::models::Package,
crates/guard/src/verifier.rs:352
↓ 2 callers
Method
run
( &self, ctx: &BuildContext, env: &BuildEnvironment, findings: Option<&Diagnos
crates/builder/src/artifact_qa/mod.rs:57
↓ 2 callers
Function
run_quality_pipeline
Replace the former `run_quality_checks()` V1 – pre‑validation P – patch tree in‑place V2 – must be clean, else the build fails # Errors Returns an
crates/builder/src/artifact_qa/mod.rs:161
↓ 2 callers
Function
run_validators
Utility that runs validators and merges their reports.
crates/builder/src/artifact_qa/mod.rs:284
↓ 2 callers
Method
save_to_cache
Save current tools to persistent cache
crates/platform/src/core/mod.rs:461
↓ 2 callers
Method
search
Search for packages by name (prefix match)
crates/index/src/lib.rs:85
↓ 2 callers
Function
set_compression
(_path: &Path)
crates/platform/src/fs.rs:364
↓ 2 callers
Method
set_env_var
Set environment variable # Errors Currently infallible, but returns Result for future compatibility.
crates/builder/src/environment/core.rs:163
↓ 2 callers
Method
set_slot_state
Persist the association between a slot and a state identifier. # Errors Returns an error if persisting the slot state fails.
crates/state/src/manager.rs:291
↓ 2 callers
Method
setup_state_transition
Setup state transition and staging directory
crates/install/src/atomic/installer.rs:128
↓ 2 callers
Function
size
Get the size of a file or directory # Errors Returns an error if: - Reading file metadata fails - Reading directory contents fails - Any I/O operati
crates/platform/src/fs.rs:326
↓ 2 callers
Method
slot_state
Read the recorded state for a slot.
crates/state/src/manager.rs:232
↓ 2 callers
Method
state
Get state manager
apps/sps2/src/setup.rs:70
↓ 2 callers
Method
state_exists
Check if state exists # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:746
↓ 2 callers
Method
store_file
Store a file by its content hash Returns true if the file was newly stored, false if it already existed # Errors Returns an error if file operations
crates/store/src/file_store.rs:109
↓ 2 callers
Method
store_file_with_hash
Store a file and compute its hash # Errors Returns an error if file operations fail
crates/store/src/file_store.rs:177
↓ 2 callers
Method
swap_to_live
Swap the prepared slot into `/opt/pm/live`, preserving the previous live directory under the previously active slot path. # Errors Returns an error
crates/state/src/live_slots.rs:182
↓ 2 callers
Method
sync_refcounts
(&self)
crates/guard/src/verifier.rs:180
↓ 2 callers
Method
sync_refcounts_to_state
Synchronize `store_refs` and `file_objects` refcounts to match a specific state exactly This sets refcounts to the exact desired values for the given
crates/state/src/manager.rs:1068
↓ 2 callers
Function
sync_slot_to_state
Sync staging slot to a specific target state This ensures the staging slot mirrors an arbitrary target state by: - Fast-path: if slot already has the
crates/install/src/atomic/package.rs:60
↓ 2 callers
Function
sync_slot_with_parent
Sync staging slot with parent state Convenience wrapper around `sync_slot_to_state` for the common case where we want to sync to the transition's par
crates/install/src/atomic/package.rs:135
↓ 2 callers
Method
uninstall
Uninstall packages # Errors Returns an error if package validation fails or uninstall operation fails.
crates/install/src/installer.rs:81
↓ 2 callers
Method
uninstall
Perform atomic uninstallation # Errors Returns an error if state transition fails, package removal fails, or filesystem operations fail.
crates/install/src/atomic/installer.rs:239
↓ 2 callers
Function
update
Update packages (delegates to install crate) # Errors Returns an error if: - No packages are installed or specified - Update resolution fails - Inst
crates/ops/src/update.rs:77
↓ 2 callers
Function
update_indices
( repo_dir: PathBuf, base_url: String, key: PathBuf, pass: Option<String>, )
apps/sbs/src/main.rs:167
↓ 2 callers
Function
update_or_upgrade
Internal implementation for both update and upgrade
crates/ops/src/update.rs:94
↓ 2 callers
Method
user_code
(&self)
crates/errors/src/ops.rs:81
↓ 2 callers
Method
user_hint
(&self)
crates/errors/src/ops.rs:69
↓ 2 callers
Method
user_message
(&self)
crates/errors/src/ops.rs:65
↓ 2 callers
Method
validate
Validate index format and version # Errors Returns an error if the index version is unsupported, package names are empty, versions are missing, arch
crates/index/src/models.rs:128
↓ 2 callers
Method
validate_compatibility
Validate package format compatibility Checks if a package with the given format version can be processed by the current version of sps2. # Errors R
crates/store/src/format_detection.rs:177
↓ 2 callers
Function
validate_rm_target
Validate what rm is trying to delete
crates/builder/src/validation/command.rs:218
↓ 2 callers
Function
validate_shell_command
Validate a shell command (executed with sh -c)
crates/builder/src/validation/command.rs:63
↓ 2 callers
Function
validate_staging_directory
Validate staging directory exists and contains packageable content
crates/ops/src/pack.rs:347
↓ 2 callers
Function
verify
( ctx: &OpsCtx, heal: bool, level: &str, scope: &str, sync_refcounts: bool, )
crates/ops/src/lib.rs:68
↓ 2 callers
Method
verify_and_heal
( &self, level: VerificationLevel, )
crates/guard/src/verifier.rs:173
↓ 2 callers
Method
verify_basic_isolation
Verify basic isolation requirements
crates/builder/src/environment/isolation.rs:37
↓ 2 callers
Method
verify_environment_sanitization
Verify environment variables are properly sanitized
crates/builder/src/environment/isolation.rs:83
↓ 2 callers
Method
verify_path_isolation
Verify PATH isolation
crates/builder/src/environment/isolation.rs:158
↓ 2 callers
Method
verify_with_progress
Run verification over the store and emit guard events describing progress.
crates/guard/src/store.rs:111
↓ 2 callers
Method
with_revision
(mut self, revision: u32)
crates/builder/src/core/context.rs:55
↓ 2 callers
Method
with_security_policy
(mut self, policy: SecurityPolicy)
crates/install/src/prepare/context.rs:37
↓ 2 callers
Method
write_slot_marker
(&self, slot: SlotId, state: Option<Uuid>)
crates/state/src/live_slots.rs:219
↓ 1 callers
Method
active_slot
Returns the identifier of the currently active slot.
crates/state/src/manager.rs:217
↓ 1 callers
Method
add_at_least_one_constraint
Add constraint: at least one version of a required package must be selected
crates/resolver/src/sat/mod.rs:121
↓ 1 callers
Method
add_build_dep
Add a build dependency
crates/types/src/manifest.rs:138
↓ 1 callers
Method
add_build_dep
(mut self, spec: PackageSpec)
crates/resolver/src/lib.rs:77
↓ 1 callers
Function
add_dir_to_tar
Recursively add directory contents to tar
crates/store/src/archive.rs:426
↓ 1 callers
Function
add_directory_to_tar_with_timestamp
Recursively add directory contents to tar archive with deterministic ordering This is the enhanced deterministic version with improved file ordering a
crates/builder/src/packaging/archive.rs:66
↓ 1 callers
Method
add_edge
Add edge between two packages
crates/resolver/src/graph.rs:169
↓ 1 callers
Method
add_installed
Add installed package
crates/install/src/api/result.rs:31
↓ 1 callers
Method
add_local_file
(mut self, path: PathBuf)
crates/resolver/src/lib.rs:84
↓ 1 callers
Method
add_macho_issue
Add a Mach-O issue
crates/builder/src/artifact_qa/diagnostics.rs:121
↓ 1 callers
Function
add_package_map
Record package mapping (now writes to `package_versions`) # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:969
↓ 1 callers
Method
add_package_refs_and_build_id_map
Helper: add package refs and build map PackageId -> db id, returning increment count
crates/state/src/manager.rs:48
↓ 1 callers
Method
add_package_versions_to_problem
Add available package versions to the SAT problem
crates/resolver/src/resolver.rs:212
↓ 1 callers
Method
add_parent
(&mut self, parent: PackageId)
crates/resolver/src/execution.rs:66
↓ 1 callers
Method
add_removed
Add removed package
crates/install/src/api/result.rs:41
↓ 1 callers
Function
add_repo
Add a new repository to the user's configuration. # Errors Returns an error if: - The configuration file cannot be loaded or created - The repositor
crates/ops/src/repository.rs:183
↓ 1 callers
Method
add_rpath
( &self, ctx: &PlatformContext, binary: &Path, rpath: &str, )
crates/platform/src/implementations/macos/binary.rs:339
↓ 1 callers
Method
add_runtime_dep
Add a runtime dependency
crates/types/src/manifest.rs:133
↓ 1 callers
Method
add_sample
Add a new sample, calculating speed and managing buffer size
crates/events/src/progress/speed.rs:51
↓ 1 callers
Method
add_updated
Add updated package
crates/install/src/api/result.rs:36
↓ 1 callers
Method
add_version
Add or update a package version
crates/index/src/models.rs:187
↓ 1 callers
Method
all_variables_assigned
Check if all variables are assigned
crates/resolver/src/sat/solver.rs:389
↓ 1 callers
Function
apply_archive_refcount_deltas
Apply archive refcount deltas when transitioning from `from_state` -> `to_state`. # Errors Returns an error if the database operations fail.
crates/state/src/db/refcount_deltas.rs:153
↓ 1 callers
Function
apply_cli_config
Apply CLI configuration overrides (highest precedence)
apps/sps2/src/main.rs:452
↓ 1 callers
Method
apply_command_effects
Apply command side effects to context
crates/builder/src/security/context.rs:238
↓ 1 callers
Function
apply_environment_config
Apply environment configuration before any build steps
crates/builder/src/utils/executor.rs:101
↓ 1 callers
Function
apply_file_refcount_deltas
Apply file-object refcount deltas when transitioning from `from_state` -> `to_state`. # Errors Returns an error if the database operations fail.
crates/state/src/db/refcount_deltas.rs:310
↓ 1 callers
Method
apply_hermetic_isolation
Apply hermetic isolation to the build environment # Errors Returns an error if isolation setup fails.
crates/builder/src/environment/hermetic.rs:70
↓ 1 callers
Method
apply_isolation_level
Apply isolation level to the environment # Errors Returns an error if: - Failed to apply network isolation settings - Failed to configure hermetic e
crates/builder/src/environment/core.rs:272
↓ 1 callers
Method
apply_network_isolation
Apply network isolation # Errors Currently this function never returns an error, but returns `Result` for future extensibility
crates/builder/src/environment/hermetic.rs:289
↓ 1 callers
Method
apply_network_isolation_vars
Apply network isolation environment variables
crates/builder/src/environment/core.rs:360
↓ 1 callers
Method
apply_patch
Apply a patch file # Errors Returns an error if the patch command fails.
crates/builder/src/core/api.rs:326
↓ 1 callers
Method
arch
Parse the architecture # Errors Returns an error if the architecture string is not supported (currently only "arm64" is supported).
crates/types/src/manifest.rs:94
↓ 1 callers
Function
archive_tools_commands
Archive and compression tools
crates/config/src/builder.rs:699
↓ 1 callers
Method
as_guard_level
(self)
crates/guard/src/verifier.rs:44
↓ 1 callers
Method
atomic_rename
Convenience method: Atomically rename a file
crates/platform/src/core/mod.rs:983
↓ 1 callers
Method
atomic_swap
( &self, ctx: &PlatformContext, path_a: &Path, path_b: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:381
↓ 1 callers
Method
autotools
Configure with autotools # Errors Returns an error if the configure or make commands fail.
crates/builder/src/core/api.rs:344
↓ 1 callers
Method
batches
(&self)
crates/resolver/src/execution.rs:182
↓ 1 callers
Function
build
Build package from recipe (delegates to builder crate) # Errors Returns an error if: - Recipe file doesn't exist or has invalid extension - Recipe c
crates/ops/src/build.rs:22
↓ 1 callers
Method
build_and_execute_install
Build install context and execute installation for packages needing update
crates/install/src/operations.rs:535
↓ 1 callers
Function
build_check_summary
( category: &str, name: &str, report: &Report, duration: Duration, )
crates/builder/src/artifact_qa/mod.rs:402
↓ 1 callers
Method
build_deps
Get build dependencies as `PackageSpec` # Errors Returns an error if any dependency specification string is invalid or cannot be parsed.
crates/types/src/manifest.rs:123
↓ 1 callers
Method
build_index
(&self, artifacts: &[PackageArtifact])
crates/repository/src/lib.rs:152
↓ 1 callers
Method
build_metadata
(&self)
crates/builder/src/core/api.rs:756
↓ 1 callers
Function
build_ops_context
Build operations context with all required components
apps/sps2/src/main.rs:323
← previous
next →
401–500 of 2,023, ranked by callers