1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
//! `ZLayer` Registry - OCI image pulling and caching
//!
//! This module provides OCI distribution client functionality with local blob caching.
//!
//! ## Features
//!
//! - `persistent` - Enable persistent disk-based blob cache
//! - `s3` - Enable S3-compatible storage backend
//! - `local` - Enable local OCI registry for storing built images
// `wasm_export` only depends on `cache::compute_digest` and the always-on
// `wasm` module, so it is available unconditionally — needed by
// `zlayer-builder` to export WASM OCI artifacts without pulling in the
// `local` feature's local-registry machinery.
pub use *;
pub use ;
pub use *;
pub use *;
pub use ;
pub use pack_files_tar_zstd;
pub use prune_dangling_blobs;
pub use *;
/// OCI manifest annotation key marking an image as a runtime-specific bundle.
///
/// Published by `zlayer vz build-base` (value [`ZLAYER_RUNTIME_VZ`]) and read by
/// the agent's composite runtime (`crates/zlayer-agent/src/runtimes/composite.rs`)
/// to auto-detect a macOS VZ base bundle and prefer the VZ runtime for it.
pub const ZLAYER_RUNTIME_ANNOTATION: &str = "com.zlayer.runtime";
/// [`ZLAYER_RUNTIME_ANNOTATION`] value for a macOS Apple-Virtualization bundle.
pub const ZLAYER_RUNTIME_VZ: &str = "vz";
/// [`ZLAYER_RUNTIME_ANNOTATION`] value for a macOS Apple-Virtualization
/// **Linux-guest** image (boots a Linux kernel under `Virtualization.framework`
/// via the agent's `macos_vz_linux` runtime). Distinct from [`ZLAYER_RUNTIME_VZ`],
/// which marks a native-macOS guest bundle.
pub const ZLAYER_RUNTIME_LINUX_VZ: &str = "vz-linux";
/// OCI label key declaring an image's DEFAULT isolation backend.
///
/// Unlike [`ZLAYER_RUNTIME_ANNOTATION`] (a *manifest* annotation stamped by
/// `zlayer vz build-base`), this is an image **config label** stamped by the
/// `ZImage` builder (`crates/zlayer-builder/src/zimage/parser.rs`) into the OCI
/// config's `config.Labels`, so it rides inside the config blob through every
/// push/pull exactly like the top-level `os` field — no separate manifest
/// stamp is required. Its value is one of the kebab strings produced by
/// [`zlayer_types::spec::RuntimeIsolation::label_value`]
/// (`sandbox` / `vz` / `vz-linux` / `vm`).
///
/// Read back (cache-only, no network) by
/// [`fetch_image_isolation_marker_in_cache_only`] and honored by the agent's
/// composite runtime (`crates/zlayer-agent/src/runtimes/composite.rs`) as an
/// image-declared default, BELOW an explicit create-request `spec.runtime` /
/// `com.zlayer.isolation` label but ABOVE the `com.zlayer.runtime` marker.
pub const ZLAYER_ISOLATION_ANNOTATION: &str = "com.zlayer.isolation";
pub use *;
pub use PersistentBlobCache;
pub use ;
pub use ;
pub use ;
pub use ;
// Re-export oci_client types that users need
pub use OciImageManifest;
pub use RegistryAuth;