Expand description
Optional session-scoped VM execution (γ CLI / β sidecar): host SessionHolder::Host, Unix γ SessionHolder::Gamma.
Re-exports§
pub use sync::pull_workspace_to_vfs;pub use sync::push_full;pub use sync::push_incremental;pub use sync::VmSyncError;
Modules§
- sync
- Push/pull between VFS and a persistent host workspace directory (session VM staging).
Structs§
- Gamma
Session - Lima-backed session: sync VFS ↔ host workspace, run tools inside the VM.
- Host
Sandbox Session - Runs
rustup/cargovia temp directory export + sync (no persistent VM). - VmConfig
- Parsed VM-related environment.
Enums§
- Session
Holder - Active VM / sandbox backend for one REPL or script run.
- VmError
- Errors from VM session operations.
Constants§
- ENV_
DEVSHELL_ VM DEVSHELL_VM— Release / binary default: unset means on (use VM backend perENV_DEVSHELL_VM_BACKEND). Set tooff/0/false/no(case-insensitive) to use only the host temp sandbox.on/1/true/yesalso enable VM mode.- ENV_
DEVSHELL_ VM_ BACKEND - Backend selector:
host,auto,lima,beta, … - ENV_
DEVSHELL_ VM_ EAGER - When
1/true/yes, start the VM session eagerly (future γ); default is lazy start on first rust tool. - ENV_
DEVSHELL_ VM_ GUEST_ WORKSPACE - Guest mount point for that directory (default
/workspace). - ENV_
DEVSHELL_ VM_ LIMACTL - Override path to
limactl(default:PATH). - ENV_
DEVSHELL_ VM_ LIMA_ HINTS - Set to
0/false/no/offto silence Lima configuration hints. - ENV_
DEVSHELL_ VM_ LIMA_ INSTANCE - Lima instance name for γ (
limactl shell <name>). - ENV_
DEVSHELL_ VM_ SOCKET - Unix socket path for β client ↔
devshell-vm --serve-socket(see IPC draft). - ENV_
DEVSHELL_ VM_ STOP_ ON_ EXIT - When set truthy, run
limactl stopon session shutdown. - ENV_
DEVSHELL_ VM_ WORKSPACE_ PARENT - Host directory we push/pull (must be mounted at
GammaSession::guest_mountin the Lima VM).
Traits§
- VmExecution
Session - Abstraction for a devshell execution session (host temp dir, γ VM, or β sidecar).
Functions§
- try_
session_ rc - Build
SessionHolderfrom the environment. On failure (e.g. default γ Lima butlimactlmissing), writes tostderrand returnsErr(()). UseDEVSHELL_VM=offorDEVSHELL_VM_BACKEND=hostto force the host temp sandbox.