pub enum Request {
Show 16 variants
Ping,
Shutdown,
Status,
Lookup {
cache_key: String,
},
Store {
cache_key: String,
artifact: ArtifactData,
},
SessionStart {
client_pid: u32,
working_dir: PathBuf,
log_file: Option<PathBuf>,
track_stats: bool,
journal_path: Option<PathBuf>,
},
Compile {
session_id: String,
args: Vec<String>,
cwd: PathBuf,
compiler: PathBuf,
env: Option<Vec<(String, String)>>,
},
SessionEnd {
session_id: String,
},
Clear,
CompileEphemeral {
client_pid: u32,
working_dir: PathBuf,
compiler: PathBuf,
args: Vec<String>,
cwd: PathBuf,
env: Option<Vec<(String, String)>>,
},
LinkEphemeral {
client_pid: u32,
tool: PathBuf,
args: Vec<String>,
cwd: PathBuf,
env: Option<Vec<(String, String)>>,
},
SessionStats {
session_id: String,
},
FingerprintCheck {
cache_file: PathBuf,
cache_type: String,
root: PathBuf,
extensions: Vec<String>,
include_globs: Vec<String>,
exclude: Vec<String>,
},
FingerprintMarkSuccess {
cache_file: PathBuf,
},
FingerprintMarkFailure {
cache_file: PathBuf,
},
FingerprintInvalidate {
cache_file: PathBuf,
},
}Expand description
A request from client to daemon.
Variants§
Ping
Health check.
Shutdown
Request daemon shutdown.
Status
Request daemon status/statistics.
Lookup
Look up a cached artifact by cache key.
Store
Store a compilation artifact.
SessionStart
Start a new session with the daemon.
Fields
Compile
Compile a source file within an existing session.
Fields
SessionEnd
End a session.
Clear
Clear all caches (artifacts, metadata, dep graph).
CompileEphemeral
Single-roundtrip ephemeral compile: session start + compile + session end in one message. Used by the CLI in drop-in wrapper mode to avoid 3 IPC roundtrips per invocation.
Fields
LinkEphemeral
Single-roundtrip ephemeral link/archive: used for zccache ar ... or
zccache ld ... in drop-in wrapper mode.
Fields
SessionStats
Query per-session statistics without ending the session. NOTE: Appended at end to preserve bincode variant indices.
FingerprintCheck
Check if files have changed since last successful fingerprint. NOTE: Appended at end to preserve bincode variant indices.
Fields
extensions: Vec<String>File extensions to include (without dot, e.g., “rs”, “cpp”).
Empty = all files. Conflicts with include_globs.
FingerprintMarkSuccess
Mark the previous fingerprint check as successful.
FingerprintMarkFailure
Mark the previous fingerprint check as failed.
FingerprintInvalidate
Invalidate a fingerprint cache (delete all state).