Expand description
Management of the global Water home and per-project managed backend build cache.
Playground projects store generated backends under
~/.water/build_cache/<absolute-project-path>/managed_backends/ instead of
scattering .water directories into user projects.
Structs§
- Build
Cache Config - Cleanup policy for the global managed build cache.
- Build
Cache Entry Usage - On-disk usage of one managed build-cache entry.
- Build
Cache GcSummary - Summary of one managed build-cache garbage-collection pass.
- Build
Cache Usage Report - What the managed build cache is currently spending disk on.
- Home
DirError - The current user’s home directory could not be determined.
- Water
Config - Global Water CLI configuration persisted to
~/.water/config.toml.
Enums§
- Build
Cache GcOutcome - Result of attempting to garbage-collect stale managed build-cache entries.
Constants§
- CLI_
COMMIT - The CLI commit hash embedded at build time.
Functions§
- build_
cache_ container_ for - Return the whole managed cache container for a project directory, which need not exist.
- build_
cache_ root - Return the global managed build-cache root at
~/.water/build_cache. - cleanup_
stale_ build_ caches_ for_ project - Garbage-collect stale managed build-cache entries while preserving the current project’s cache.
- ensure_
global_ config - Ensure
~/.water/config.tomlexists and return the parsed configuration. - ensure_
project_ build_ cache - Ensure the managed build-cache directory exists for a project and return it.
- project_
build_ cache_ dir - Return the managed build-cache directory for a project.
- remove_
project_ build_ cache - Remove the managed build cache for a project.
- survey_
build_ cache_ usage - Survey the managed build cache without removing anything.
- water_
home_ dir - Return the Water home directory root at
~/.water. - water_
home_ dir_ in - Return the Water home directory root at
~/.waterforhost. - write_
global_ config - Persist
configto~/.water/config.toml.