forge-plugin-sdk 0.1.4

OpenAPI Forge plugin author SDK (wasm32-wasip2 only)
docs.rs failed to build forge-plugin-sdk-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

forge-plugin-sdk

Author SDK for OpenAPI Forge plugins.

WASM-only. Plugins are WebAssembly Component Model components targeting wasm32-wasip2; this crate provides the wit-bindgen glue, helper types, and conversions between the canonical [forge-ir] types and the WIT boundary.

Worlds

A plugin implements one world. Pick the matching feature in your plugin's Cargo.toml:

[dependencies]
forge-plugin-sdk = { version = "0.1", features = ["transformer"] }
# or
forge-plugin-sdk = { version = "0.1", features = ["generator"] }

Both features at once is rejected at compile time.

No native shim

forge-plugin-sdk only builds for wasm32. There is no native shim and no opt-in to one. Plugin integration tests run through forge-test-harness, which loads the plugin's .wasm through the same wasmtime runtime the host uses in production. The rationale is in ADR-0004.

Recommended structure

Factor pure logic (naming, templating, type rendering) into modules that build natively under cargo test, and keep the WASM-boundary entry point thin. See docs/plugin-authoring.md.

License

Dual-licensed under Apache-2.0 or MIT at your option.