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
↓ 577 callers
Method
clone
(&self)
crates/hash/src/file_hasher.rs:261
↓ 199 callers
Method
contains
(&self, literal: Literal)
crates/resolver/src/sat/clause.rs:85
↓ 189 callers
Method
len
(&self)
crates/resolver/src/sat/clause.rs:61
↓ 182 callers
Method
clone
(&self)
crates/builder/src/build_systems/core.rs:112
↓ 159 callers
Method
get
Execute a GET request with retries # Errors Returns an error if the request fails after all retry attempts, including network timeouts, connection f
crates/net/src/client.rs:110
↓ 155 callers
Method
emit
Emit an event through this emitter, automatically deriving metadata.
crates/events/src/lib.rs:131
↓ 152 callers
Method
is_empty
(&self)
crates/types/src/recipe.rs:236
↓ 134 callers
Method
exists
Check if cache exists
crates/index/src/cache.rs:84
↓ 97 callers
Method
path
(&self)
crates/store/src/package.rs:64
↓ 86 callers
Function
create_dir_all
Create a directory with all parent directories # Errors Returns an error if: - Permission is denied - Any I/O operation fails during directory creat
crates/platform/src/fs.rs:182
↓ 68 callers
Method
get
Get a specific build system by name
crates/builder/src/build_systems/mod.rs:109
↓ 63 callers
Method
filesystem
Access filesystem operations
crates/platform/src/core/mod.rs:925
↓ 57 callers
Function
send_event
Send event if context has event sender
crates/builder/src/utils/events.rs:7
↓ 51 callers
Method
execute
Execute installation # Errors Returns an error if dependency resolution fails, package download fails, or installation fails.
crates/install/src/operations.rs:58
↓ 51 callers
Method
show_operation
( &mut self, meta: &EventMeta, message: String, operation: &str, sever
apps/sps2/src/events.rs:1568
↓ 42 callers
Method
is_dir
(&self, _ctx: &PlatformContext, path: &Path)
crates/platform/src/implementations/macos/filesystem.rs:694
↓ 41 callers
Method
get_all_env_vars
(&self)
crates/builder/src/build_systems/core.rs:87
↓ 40 callers
Method
as_bytes
(&self)
crates/hash/src/lib.rs:76
↓ 39 callers
Method
execute_command_with_env
Execute a command with an explicit environment and optional allow-failure behavior. If `allow_failure` is true, this returns Ok(BuildCommandResult) ev
crates/builder/src/environment/execution.rs:46
↓ 37 callers
Method
staging_dir
(&self)
crates/builder/src/environment/core.rs:119
↓ 36 callers
Method
get
(&self, var: Variable)
crates/resolver/src/sat/types.rs:184
↓ 36 callers
Method
to_hex
(&self)
crates/hash/src/lib.rs:82
↓ 35 callers
Method
as_str
(&self)
crates/events/src/meta.rs:149
↓ 34 callers
Method
ok
()
crates/builder/src/artifact_qa/reports.rs:20
↓ 34 callers
Method
remove
(&self, id: &str)
crates/events/src/progress/manager.rs:139
↓ 27 callers
Method
build
Build a package from a Starlark recipe # Errors Returns an error if: - The recipe file cannot be read or parsed - Build dependencies cannot be resol
crates/builder/src/core/builder.rs:93
↓ 27 callers
Function
remove_file
Remove a single file # Errors Returns an error if: - The file removal operation fails (permissions, file not found, etc.)
crates/platform/src/fs.rs:381
↓ 26 callers
Method
timestamp
(&self)
crates/state/src/models.rs:38
↓ 24 callers
Function
create_platform_context
Create a platform context for filesystem operations
crates/store/src/archive.rs:15
↓ 22 callers
Method
platform
Get the shared platform instance
crates/platform/src/core/mod.rs:841
↓ 20 callers
Function
remove_dir_all
Remove a directory and all its contents # Errors Returns an error if: - The directory removal operation fails (permissions, non-empty directory, etc
crates/platform/src/fs.rs:210
↓ 20 callers
Method
update
Update packages # Errors Returns an error if package resolution fails, download fails, or update fails.
crates/install/src/installer.rs:102
↓ 19 callers
Method
show_meta_message
(&mut self, meta: &EventMeta, message: String, severity: EventSeverity)
apps/sps2/src/events.rs:1579
↓ 18 callers
Method
create_context
Create a platform context with event emission
crates/platform/src/core/mod.rs:935
↓ 18 callers
Method
validate_path_access
Validate a path access in the current context # Errors Returns an error if: - Path resolution fails - Path escapes build root (for unauthorized acce
crates/builder/src/security/context.rs:91
↓ 17 callers
Method
begin_transaction
Begin transaction (placeholder implementation) # Errors Returns an error if the database transaction cannot be started.
crates/state/src/manager.rs:830
↓ 17 callers
Method
clone
(&self)
crates/net/src/download/core.rs:537
↓ 17 callers
Method
parents
(&self)
crates/resolver/src/execution.rs:73
↓ 17 callers
Function
rename
Rename a file or directory # Errors Returns an error if: - The rename operation fails (permissions, cross-device, etc.)
crates/platform/src/fs.rs:301
↓ 17 callers
Method
success
( operation: String, summary: String, changes: Vec<OpChange>, duration_ms: u64
crates/ops/src/types.rs:28
↓ 16 callers
Method
args
Add multiple arguments to the command
crates/platform/src/process/mod.rs:37
↓ 16 callers
Method
is_empty
(&self)
crates/resolver/src/sat/clause.rs:67
↓ 16 callers
Method
parse
Parse version from string in format "major.minor.patch" # Errors Returns an error if the version string is malformed or contains invalid numbers
crates/types/src/format.rs:45
↓ 16 callers
Function
run
Main application logic
apps/sps2/src/main.rs:49
↓ 15 callers
Function
exists
Check if a path exists
crates/platform/src/fs.rs:311
↓ 15 callers
Function
expand_string
Expand variables in a single string
crates/builder/src/recipe/parser.rs:148
↓ 15 callers
Method
get_current_state_id
Get current state ID # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:821
↓ 15 callers
Method
literals
(&self)
crates/resolver/src/sat/clause.rs:55
↓ 15 callers
Function
tokenize_shell
Parse a shell command into tokens
crates/builder/src/validation/parser.rs:22
↓ 14 callers
Method
binary
Access binary operations
crates/platform/src/core/mod.rs:920
↓ 14 callers
Method
build_prefix
(&self)
crates/builder/src/environment/core.rs:136
↓ 14 callers
Method
get_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/python.rs:886
↓ 14 callers
Method
package_path
(&self, hash: &Hash)
crates/store/src/lib.rs:74
↓ 14 callers
Method
process
Access process operations
crates/platform/src/core/mod.rs:930
↓ 14 callers
Method
variable
(self)
crates/resolver/src/sat/types.rs:58
↓ 13 callers
Method
create_dir_all
( &self, ctx: &PlatformContext, path: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:572
↓ 13 callers
Method
with_event_sender
(mut self, tx: EventSender)
crates/ops/src/context.rs:162
↓ 12 callers
Method
add_package
Add a package to the store from a .sp file This extracts the package, hashes individual files for deduplication, and stores the package metadata with
crates/store/src/lib.rs:128
↓ 12 callers
Method
create_tracker_with_phases
Create a tracker with phases
crates/events/src/progress/manager.rs:40
↓ 12 callers
Method
emit_event
Emit a platform event if event sender is available
crates/platform/src/core/mod.rs:38
↓ 12 callers
Method
get_variable
(&self, package: &PackageVersion)
crates/resolver/src/sat/variable_map.rs:57
↓ 12 callers
Method
metadata
(&self)
crates/index/src/lib.rs:210
↓ 12 callers
Method
version
(&self)
crates/state/src/models.rs:63
↓ 11 callers
Function
channel
()
crates/events/src/lib.rs:107
↓ 11 callers
Method
execute_command
Execute a command with security validation # Errors Returns an error if: - Command parsing fails - Path validation fails for command arguments - Sec
crates/builder/src/security/context.rs:69
↓ 11 callers
Method
get_installed_packages
Get all installed packages in current state # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:312
↓ 11 callers
Method
get_live_prefix
(&self)
crates/builder/src/environment/core.rs:148
↓ 11 callers
Method
get_tool
Get a tool path, using persistent cache or discovering if necessary
crates/platform/src/core/mod.rs:488
↓ 11 callers
Method
install
Mark that installation is requested This method does not actually perform installation during recipe execution. Instead, it marks that the package sh
crates/builder/src/core/api.rs:715
↓ 10 callers
Function
get_active_state
Get the current active state # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:15
↓ 10 callers
Method
record_build_system
Record that a build system was used during the build
crates/builder/src/environment/core.rs:208
↓ 9 callers
Method
count
(&self)
crates/builder/src/artifact_qa/diagnostics.rs:142
↓ 9 callers
Function
emit_binary_completed
( ctx: &PlatformContext, operation: &str, target: &Path, changes: Option<Vec<String>>, dur
crates/platform/src/implementations/macos/binary.rs:68
↓ 9 callers
Function
emit_binary_failed
( ctx: &PlatformContext, operation: &str, target: &Path, error: &PlatformError, duration:
crates/platform/src/implementations/macos/binary.rs:82
↓ 9 callers
Function
emit_binary_started
(ctx: &PlatformContext, operation: &str, target: &Path)
crates/platform/src/implementations/macos/binary.rs:61
↓ 9 callers
Method
emit_debug
Emit a debug log event
crates/events/src/lib.rs:138
↓ 9 callers
Function
emit_fs_completed
( ctx: &PlatformContext, operation: &str, source: Option<&Path>, target: &Path, changes: O
crates/platform/src/implementations/macos/filesystem.rs:100
↓ 9 callers
Function
emit_fs_failed
( ctx: &PlatformContext, operation: &str, source: Option<&Path>, target: &Path, error: &Pl
crates/platform/src/implementations/macos/filesystem.rs:115
↓ 9 callers
Function
emit_fs_started
( ctx: &PlatformContext, operation: &str, source: Option<&Path>, target: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:88
↓ 9 callers
Method
emit_started
Emit a started event for an existing tracker using its stored metadata.
crates/events/src/progress/manager.rs:57
↓ 9 callers
Method
eval_literal
(&self, lit: Literal)
crates/resolver/src/sat/types.rs:211
↓ 9 callers
Method
get_installed_packages_in_state
Get all installed packages in a specific state # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:325
↓ 9 callers
Method
platform_manager
Get access to the platform manager for tool registry and other services
crates/platform/src/core/mod.rs:66
↓ 9 callers
Method
root_event_id
(&self)
crates/events/src/progress/tracker.rs:228
↓ 8 callers
Method
add_clause
Add a clause to the problem
crates/resolver/src/sat/mod.rs:77
↓ 8 callers
Method
configure
Run configure step only # Errors Returns an error if the configure command fails.
crates/builder/src/core/api.rs:646
↓ 8 callers
Method
drain
(&self)
crates/events/src/progress/manager.rs:434
↓ 8 callers
Method
exists
Check if a path exists
crates/platform/src/implementations/macos/filesystem.rs:637
↓ 8 callers
Method
extract_downloads
Extract downloaded archives # Errors Returns an error if any archive extraction fails.
crates/builder/src/core/api.rs:787
↓ 8 callers
Method
get_active_state
Get the current active state # Errors Returns an error if the database query fails or no active state exists.
crates/state/src/manager.rs:197
↓ 8 callers
Method
hash
(&self)
crates/state/src/models.rs:73
↓ 8 callers
Method
push_correlation
(&self, correlation: impl Into<String>)
crates/ops/src/context.rs:47
↓ 8 callers
Function
validate_arguments
Validate command arguments
crates/builder/src/validation/mod.rs:197
↓ 8 callers
Method
version
(&self)
crates/index/src/models.rs:217
↓ 7 callers
Function
add_package
Ensure a package version exists and add it to a state snapshot # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:142
↓ 7 callers
Method
build
# Errors Returns an error if any required dependency is missing from the builder.
crates/ops/src/context.rs:182
↓ 7 callers
Method
create_command
(&self, program: &str)
crates/platform/src/implementations/macos/process.rs:170
↓ 7 callers
Method
file_path
(&self, hash: &Hash)
crates/store/src/file_store.rs:91
↓ 7 callers
Method
get_extra_env
(&self, key: &str)
crates/builder/src/environment/core.rs:189
↓ 7 callers
Function
get_or_create_store_ref
Ensure an archive CAS row exists # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:223
next →
1–100 of 2,023, ranked by callers