Expand description
Portable Capability Descriptor validation and binding generation.
The Descriptor and its package-local JSON Schemas are the only portable contract source. This crate deliberately lives above the Kernel: it reads authoring files, checks evolution rules, and emits deterministic Rust and TypeScript artifacts before an App is booted.
Structs§
- Descriptor
- A validated, self-contained portable Capability Descriptor.
- Generated
Artifacts - Deterministic artifacts generated from one Descriptor and Schema source.
- Generated
Metadata - Metadata embedded in every generated language artifact.
Enums§
- Codegen
Error - Errors produced while parsing, validating, or generating a contract.
- Compatibility
Error - Reasons why a Descriptor evolution is not safe for an existing Capability series.
Functions§
- check_
generated - Fails when either checked-in artifact is not exactly reproducible.
- generate
- Generates both language artifacts from one Descriptor source.
- generate_
browser_ request_ client - Generates an executable browser request client from the same validated Descriptor IR used by the checked-in Rust and TypeScript bindings.
- lint_
compatibility - Checks whether
new_pathis an additive, compatible evolution ofold_path.truemeans the same Capability series remains compatible. - load_
descriptor - Reads and validates one Descriptor, resolving package-local
$reffiles. - round_
trip_ portable_ json - Round-trips one JSON value through the portable wire representation.
- validate_
wire_ value - Validates a wire value against a package-local JSON Schema.
- write_
generated - Writes generated artifacts to checked-in paths.