pub struct Manifest {Show 14 fields
pub schema: String,
pub root: PathBuf,
pub root_written: Option<PathBuf>,
pub unit: String,
pub language: Lang,
pub kind: Kind,
pub crate_name: String,
pub exports: Vec<ExportedFn>,
pub classes: Vec<ExportedClass>,
pub js_only: Vec<JsOnly>,
pub batches: Vec<Batch>,
pub allocator: Allocator,
pub float_tolerance: Option<f64>,
pub ignore_key_order: bool,
}Expand description
What bridge generated; every later step starts from it.
Fields§
§schema: String§root: PathBufThe repository root: absolute, or relative to the crate folder (so a crate kept inside the repository it ports works in any clone). Resolved when the manifest is loaded.
root_written: Option<PathBuf>root as written in the file, when it was relative; written back instead of the resolved
path.
unit: String§language: Lang§kind: Kind§crate_name: String§exports: Vec<ExportedFn>Exports ported to Rust.
classes: Vec<ExportedClass>Exported classes ported to Rust: a struct with new and methods.
js_only: Vec<JsOnly>Exports that cannot cross the bridge as they are; they stay in TS and the shadow module re-exports them from the original.
batches: Vec<Batch>Functions run over many items kept in Rust (--batch function:param).
allocator: AllocatorThe global allocator when the crate has batches (bridge --allocator).
float_tolerance: Option<f64>Floats match within this relative tolerance (record --float-tolerance).
ignore_key_order: boolObjects match regardless of key order (record --ignore-key-order).