Skip to main content

Module cloud

Module cloud 

Source
Expand description

Cloud Build Service — Remote CI/CD, OTA Updates, Build Artifact Caching.

Provides the Rust-side types and orchestration for:

  1. Remote CI/CD: Define build pipelines targeting multiple platforms, track build jobs, and collect results.
  2. OTA Updates: Version-aware update manifests, bundle diffing metadata, and rollback support for hot-updating JS bundles without app store releases.
  3. Build Artifact Caching: Content-addressed cache for intermediate build outputs (compiled Rust dylibs, bundled JS, assets) with TTL and invalidation.

This module does NOT perform network I/O — it defines the data model and validation logic. Actual HTTP transport is handled by platform adapters.

Structs§

ArtifactCache
In-memory artifact cache with LRU eviction.
BuildJob
A single build job within a pipeline.
BuildJobConfig
Configuration for a single build job.
BuildPipeline
A build pipeline targeting one or more platforms.
BundleVersion
Semantic version for bundles.
CacheEntry
A cached build artifact entry.
CacheKey
A content-addressed cache key.
OtaManifest
Manifest listing available OTA updates for an app.
OtaUpdate
A single OTA update entry.

Enums§

BuildMode
Build mode (debug vs release).
BuildStatus
Status of a build job.
BuildTarget
Platforms a build can target.
CloudError
OtaDecision
Decision about whether to apply an OTA update.

Functions§

evaluate_ota
Evaluate whether an OTA update should be applied.
validate_pipeline
Validates a build pipeline configuration before submission.

Type Aliases§

CloudResult