Expand description
Shared lifecycle for dynamic tools installed by a managed native runtime.
Cargo and Go-module tools both delegate compilation or package resolution to an exact managed runtime. This module owns the common durable boundary: an identity-qualified lock and install root, a sibling staging directory, a receipt binding the provider/runtime/binary bytes, an adjacent metadata seal, and fail-closed reuse, listing, and removal helpers. The seal detects accidental or isolated install-root mutation; it is not a security boundary against a process that can also rewrite the user’s osdk state directory. Backend-specific command planning stays in the individual backend modules.
Structs§
- Native
Tool BinReceipt - Native
Tool Lifecycle - Lifecycle state derived entirely from inputs known before installation.
- Native
Tool Receipt - Native
Tool Stage - A native install staging root that is deleted unless publication succeeds.
Enums§
- Native
Tool Family - Native
Tool Preparation - Result of atomically selecting or preparing one native install identity.
- Native
Tool Provider
Constants§
- LOCKED_
NATIVE_ REPLAY_ OPTION - LOCKED_
NATIVE_ RUNTIME_ OPTION - LOCKED_
NATIVE_ RUNTIME_ VERSION_ OPTION - NATIVE_
TOOL_ RECEIPT_ FILE
Functions§
- exact_
runtime_ dependency - go_
runtime_ identity - Content identity for an exact managed Go SDK.
- list_
installed - load_
receipt - receipt_
path - remove_
exact_ install - runtime_
tree_ identity - Stable content identity for a bounded runtime root. Prefer the cached,
layout-aware
go_runtime_identityandrust_runtime_identityhelpers for managed compiler runtimes. - rust_
runtime_ identity - Content identity for the build-critical portion of an exact managed Rust
toolchain. The compiler payload comes from rustup’s
manifest-rustc-*, and every regular file below the selected target’slibdirectory is included. Symlinks and non-regular payloads fail closed. - validate_
install_ candidate - Validate a native candidate without executing its provider or consulting the network. This is the single reuse/activation/shim/lock inspection boundary.