Skip to main content

Crate perry_wit

Crate perry_wit 

Source
Expand description

Perry-WIT: compiles TypeScript directly into WASI 0.3 WebAssembly components.

Pipeline: TypeScript → specialized HIR (perry_frontend) → eager MIR (perry_lower, perry_mir) → Wasm dialect (perry_codegen, pliron_wasm) → linked core Wasm → component. Runtime libraries are built in their own workspace and embedded through perry_rt_build.

Re-exports§

pub use api::compile as compile_with_diagnostics;
pub use compiler::CompileOptions;
pub use compiler::Compiled;
pub use compiler::ComponentOutput;
pub use compiler::compile_core;
pub use compiler::compile_file;
pub use compiler::compile_for_world;
pub use compiler::compile_typescript;
pub use sdk::SdkOptions;
pub use sdk::SdkResult;
pub use sdk::generate_sdk_files;
pub use perry_wit_diagnostics as diagnostics;

Modules§

api
Content-based compiler API over caller-supplied sources and modules.
compiler
TypeScript → MIR → core Wasm → WASI 0.3 component.
component
In-process WIT embedding and WebAssembly component encoding.
sdk
Zero-Config SDK generation and TypeScript developer experience.

Structs§

CompileError
PerryDiagnostic
SourceSpan

Enums§

DiagnosticCode
DiagnosticSeverity