Opt-in local incremental compiler state
Linux workspaces can opt into managed local compiler state through
[local_execution_state] in the root struo.toml, with enabled = true
and an explicit positive max_size budget.
Eligible unoptimized workspace Rust libraries and binaries retain incremental compiler state across source edits. Compiler configuration changes reset it. Stateful results and their dependent targets stay workspace-local, while pure prerequisites remain eligible for the shared cache. Stateless builds remain the default.
The implementation uses cooperative compiler leases and rejects unsupported execution modes. After successful execution and input validation, stable file outputs can release eligible consumers while cache capture finishes under the producer's output locks and resource reservation. Inputs and captured digests are checked again before the successful result is published. Its disk budget controls reservations and retention, not a hard filesystem quota. Warm-edit parity with Cargo has not been established.
The same opt-in mechanism now supports eligible Swift module compilation and Kotlin JVM library and binary builds. Swift retains its native dependency records and rejects ambiguous source timestamps by rebuilding private state. Kotlin uses the checksum-pinned Kotlin 2.4.21 Build Tools API with JDK 17, tracks source removal and compiler configuration, and packages a fresh JAR. Its short-lived JVM limits JIT startup work and reuses dependency archive snapshots only after checking their content, not their timestamps. Both integrations keep compiler outputs private until successful input validation. Unsupported compiler modes retain stateless compilation. The runtime still requires Linux; these changes do not enable managed state on macOS or establish parity with Xcode, SwiftPM or Gradle.
See local incremental compilation for supported variants and limitations.