pub struct BakeOptions {
pub project_root: PathBuf,
pub out_dir: PathBuf,
pub name_sanitizer: Option<NameSanitizer>,
pub on_warn: Option<WarnSink>,
pub on_progress: Option<ProgressSink>,
pub verbose_timing: bool,
pub verbose_collisions: bool,
}Expand description
Caller-supplied bake configuration.
Built by the consumer’s CLI / library entry point and handed to
bake. The library never reads env vars, never resolves the
project root for you, and never writes to stderr — every side
channel routes through one of the optional sinks below.
Fields§
§project_root: PathBufProject root containing Assets/ + ProjectSettings/. Caller
resolves this (typically via crate::walk::resolve_project_root)
before constructing options.
out_dir: PathBufDirectory where asset-db.bin and asset-db.cache.bin are written.
Caller composes the convention (e.g. <project>/Library/unity-assetdb/
or a fixture-staging path).
name_sanitizer: Option<NameSanitizer>Optional name sanitizer; see NameSanitizer.
on_warn: Option<WarnSink>Optional warning sink; see WarnSink. None discards warnings.
on_progress: Option<ProgressSink>Optional progress sink; see ProgressSink. None discards the
summary line.
verbose_timing: boolWhen true, [on_progress] also receives a per-phase timing line
(cache / walk / build / write). Env-var-driven behavior is the
consumer’s call.
verbose_collisions: boolWhen true, [on_warn] receives a line for each name-collision
rewrite during dedup. Off by default to keep steady-state warm
bakes quiet.