MCPcopy Create free account

hub / github.com/alexykn/sps2 / functions

Functions2,023 in github.com/alexykn/sps2

↓ 577 callersMethodclone
(&self)
crates/hash/src/file_hasher.rs:261
↓ 199 callersMethodcontains
(&self, literal: Literal)
crates/resolver/src/sat/clause.rs:85
↓ 189 callersMethodlen
(&self)
crates/resolver/src/sat/clause.rs:61
↓ 182 callersMethodclone
(&self)
crates/builder/src/build_systems/core.rs:112
↓ 159 callersMethodget
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 callersMethodemit
Emit an event through this emitter, automatically deriving metadata.
crates/events/src/lib.rs:131
↓ 152 callersMethodis_empty
(&self)
crates/types/src/recipe.rs:236
↓ 134 callersMethodexists
Check if cache exists
crates/index/src/cache.rs:84
↓ 97 callersMethodpath
(&self)
crates/store/src/package.rs:64
↓ 86 callersFunctioncreate_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 callersMethodget
Get a specific build system by name
crates/builder/src/build_systems/mod.rs:109
↓ 63 callersMethodfilesystem
Access filesystem operations
crates/platform/src/core/mod.rs:925
↓ 57 callersFunctionsend_event
Send event if context has event sender
crates/builder/src/utils/events.rs:7
↓ 51 callersMethodexecute
Execute installation # Errors Returns an error if dependency resolution fails, package download fails, or installation fails.
crates/install/src/operations.rs:58
↓ 51 callersMethodshow_operation
( &mut self, meta: &EventMeta, message: String, operation: &str, sever
apps/sps2/src/events.rs:1568
↓ 42 callersMethodis_dir
(&self, _ctx: &PlatformContext, path: &Path)
crates/platform/src/implementations/macos/filesystem.rs:694
↓ 41 callersMethodget_all_env_vars
(&self)
crates/builder/src/build_systems/core.rs:87
↓ 40 callersMethodas_bytes
(&self)
crates/hash/src/lib.rs:76
↓ 39 callersMethodexecute_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 callersMethodstaging_dir
(&self)
crates/builder/src/environment/core.rs:119
↓ 36 callersMethodget
(&self, var: Variable)
crates/resolver/src/sat/types.rs:184
↓ 36 callersMethodto_hex
(&self)
crates/hash/src/lib.rs:82
↓ 35 callersMethodas_str
(&self)
crates/events/src/meta.rs:149
↓ 34 callersMethodok
()
crates/builder/src/artifact_qa/reports.rs:20
↓ 34 callersMethodremove
(&self, id: &str)
crates/events/src/progress/manager.rs:139
↓ 27 callersMethodbuild
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 callersFunctionremove_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 callersMethodtimestamp
(&self)
crates/state/src/models.rs:38
↓ 24 callersFunctioncreate_platform_context
Create a platform context for filesystem operations
crates/store/src/archive.rs:15
↓ 22 callersMethodplatform
Get the shared platform instance
crates/platform/src/core/mod.rs:841
↓ 20 callersFunctionremove_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 callersMethodupdate
Update packages # Errors Returns an error if package resolution fails, download fails, or update fails.
crates/install/src/installer.rs:102
↓ 19 callersMethodshow_meta_message
(&mut self, meta: &EventMeta, message: String, severity: EventSeverity)
apps/sps2/src/events.rs:1579
↓ 18 callersMethodcreate_context
Create a platform context with event emission
crates/platform/src/core/mod.rs:935
↓ 18 callersMethodvalidate_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 callersMethodbegin_transaction
Begin transaction (placeholder implementation) # Errors Returns an error if the database transaction cannot be started.
crates/state/src/manager.rs:830
↓ 17 callersMethodclone
(&self)
crates/net/src/download/core.rs:537
↓ 17 callersMethodparents
(&self)
crates/resolver/src/execution.rs:73
↓ 17 callersFunctionrename
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 callersMethodsuccess
( operation: String, summary: String, changes: Vec<OpChange>, duration_ms: u64
crates/ops/src/types.rs:28
↓ 16 callersMethodargs
Add multiple arguments to the command
crates/platform/src/process/mod.rs:37
↓ 16 callersMethodis_empty
(&self)
crates/resolver/src/sat/clause.rs:67
↓ 16 callersMethodparse
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 callersFunctionrun
Main application logic
apps/sps2/src/main.rs:49
↓ 15 callersFunctionexists
Check if a path exists
crates/platform/src/fs.rs:311
↓ 15 callersFunctionexpand_string
Expand variables in a single string
crates/builder/src/recipe/parser.rs:148
↓ 15 callersMethodget_current_state_id
Get current state ID # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:821
↓ 15 callersMethodliterals
(&self)
crates/resolver/src/sat/clause.rs:55
↓ 15 callersFunctiontokenize_shell
Parse a shell command into tokens
crates/builder/src/validation/parser.rs:22
↓ 14 callersMethodbinary
Access binary operations
crates/platform/src/core/mod.rs:920
↓ 14 callersMethodbuild_prefix
(&self)
crates/builder/src/environment/core.rs:136
↓ 14 callersMethodget_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/python.rs:886
↓ 14 callersMethodpackage_path
(&self, hash: &Hash)
crates/store/src/lib.rs:74
↓ 14 callersMethodprocess
Access process operations
crates/platform/src/core/mod.rs:930
↓ 14 callersMethodvariable
(self)
crates/resolver/src/sat/types.rs:58
↓ 13 callersMethodcreate_dir_all
( &self, ctx: &PlatformContext, path: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:572
↓ 13 callersMethodwith_event_sender
(mut self, tx: EventSender)
crates/ops/src/context.rs:162
↓ 12 callersMethodadd_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 callersMethodcreate_tracker_with_phases
Create a tracker with phases
crates/events/src/progress/manager.rs:40
↓ 12 callersMethodemit_event
Emit a platform event if event sender is available
crates/platform/src/core/mod.rs:38
↓ 12 callersMethodget_variable
(&self, package: &PackageVersion)
crates/resolver/src/sat/variable_map.rs:57
↓ 12 callersMethodmetadata
(&self)
crates/index/src/lib.rs:210
↓ 12 callersMethodversion
(&self)
crates/state/src/models.rs:63
↓ 11 callersFunctionchannel
()
crates/events/src/lib.rs:107
↓ 11 callersMethodexecute_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 callersMethodget_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 callersMethodget_live_prefix
(&self)
crates/builder/src/environment/core.rs:148
↓ 11 callersMethodget_tool
Get a tool path, using persistent cache or discovering if necessary
crates/platform/src/core/mod.rs:488
↓ 11 callersMethodinstall
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 callersFunctionget_active_state
Get the current active state # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:15
↓ 10 callersMethodrecord_build_system
Record that a build system was used during the build
crates/builder/src/environment/core.rs:208
↓ 9 callersMethodcount
(&self)
crates/builder/src/artifact_qa/diagnostics.rs:142
↓ 9 callersFunctionemit_binary_completed
( ctx: &PlatformContext, operation: &str, target: &Path, changes: Option<Vec<String>>, dur
crates/platform/src/implementations/macos/binary.rs:68
↓ 9 callersFunctionemit_binary_failed
( ctx: &PlatformContext, operation: &str, target: &Path, error: &PlatformError, duration:
crates/platform/src/implementations/macos/binary.rs:82
↓ 9 callersFunctionemit_binary_started
(ctx: &PlatformContext, operation: &str, target: &Path)
crates/platform/src/implementations/macos/binary.rs:61
↓ 9 callersMethodemit_debug
Emit a debug log event
crates/events/src/lib.rs:138
↓ 9 callersFunctionemit_fs_completed
( ctx: &PlatformContext, operation: &str, source: Option<&Path>, target: &Path, changes: O
crates/platform/src/implementations/macos/filesystem.rs:100
↓ 9 callersFunctionemit_fs_failed
( ctx: &PlatformContext, operation: &str, source: Option<&Path>, target: &Path, error: &Pl
crates/platform/src/implementations/macos/filesystem.rs:115
↓ 9 callersFunctionemit_fs_started
( ctx: &PlatformContext, operation: &str, source: Option<&Path>, target: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:88
↓ 9 callersMethodemit_started
Emit a started event for an existing tracker using its stored metadata.
crates/events/src/progress/manager.rs:57
↓ 9 callersMethodeval_literal
(&self, lit: Literal)
crates/resolver/src/sat/types.rs:211
↓ 9 callersMethodget_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 callersMethodplatform_manager
Get access to the platform manager for tool registry and other services
crates/platform/src/core/mod.rs:66
↓ 9 callersMethodroot_event_id
(&self)
crates/events/src/progress/tracker.rs:228
↓ 8 callersMethodadd_clause
Add a clause to the problem
crates/resolver/src/sat/mod.rs:77
↓ 8 callersMethodconfigure
Run configure step only # Errors Returns an error if the configure command fails.
crates/builder/src/core/api.rs:646
↓ 8 callersMethoddrain
(&self)
crates/events/src/progress/manager.rs:434
↓ 8 callersMethodexists
Check if a path exists
crates/platform/src/implementations/macos/filesystem.rs:637
↓ 8 callersMethodextract_downloads
Extract downloaded archives # Errors Returns an error if any archive extraction fails.
crates/builder/src/core/api.rs:787
↓ 8 callersMethodget_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 callersMethodhash
(&self)
crates/state/src/models.rs:73
↓ 8 callersMethodpush_correlation
(&self, correlation: impl Into<String>)
crates/ops/src/context.rs:47
↓ 8 callersFunctionvalidate_arguments
Validate command arguments
crates/builder/src/validation/mod.rs:197
↓ 8 callersMethodversion
(&self)
crates/index/src/models.rs:217
↓ 7 callersFunctionadd_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 callersMethodbuild
# Errors Returns an error if any required dependency is missing from the builder.
crates/ops/src/context.rs:182
↓ 7 callersMethodcreate_command
(&self, program: &str)
crates/platform/src/implementations/macos/process.rs:170
↓ 7 callersMethodfile_path
(&self, hash: &Hash)
crates/store/src/file_store.rs:91
↓ 7 callersMethodget_extra_env
(&self, key: &str)
crates/builder/src/environment/core.rs:189
↓ 7 callersFunctionget_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