pub struct SourcePackageMaterializationRequest {Show 14 fields
pub source_root: PathBuf,
pub cache_root: PathBuf,
pub package_name: String,
pub materialized_package_name: String,
pub library_name: String,
pub source_digest: String,
pub source_revision: String,
pub crate_name: String,
pub crate_version: String,
pub toolchain_label: String,
pub include_paths: Vec<PathBuf>,
pub generated_files: Vec<GeneratedSourceFile>,
pub sentinel_files: Vec<PathBuf>,
pub manifest_policy: SourcePackageManifestPolicy,
}Expand description
Request to materialize a package-owned Lean source payload.
The source digest is the cache identity. The other provenance fields make a warm entry self-describing and force rematerialization when caller-visible ownership metadata changes while the payload bytes happen to remain stable.
Fields§
§source_root: PathBufDirectory containing the packaged source payload.
cache_root: PathBufCaller-owned cache root. The helper owns the layout below it.
package_name: StringPublic upstream Lake package name.
materialized_package_name: StringLake package identifier in the materialized root.
library_name: StringLean library/root module name.
source_digest: StringDigest of the payload source rule chosen by the caller.
source_revision: StringSource revision, vendoring revision, or another stable source identity.
crate_name: StringRust crate that owns this payload.
crate_version: StringRust crate version that owns this payload.
toolchain_label: StringLean toolchain label to write into the generated lean-toolchain.
include_paths: Vec<PathBuf>Source-root-relative files or directories to copy recursively.
generated_files: Vec<GeneratedSourceFile>Files written after copying. These can override copied files when the caller owns generated Lake metadata.
sentinel_files: Vec<PathBuf>Files that must exist in a valid warm cache entry.
manifest_policy: SourcePackageManifestPolicyValidation policy for lake-manifest.json.
Trait Implementations§
Source§impl Clone for SourcePackageMaterializationRequest
impl Clone for SourcePackageMaterializationRequest
Source§fn clone(&self) -> SourcePackageMaterializationRequest
fn clone(&self) -> SourcePackageMaterializationRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more