vtx-protocol
Official WIT interface definitions and SDK for VTX Project plugins.
This crate serves as the Single Source of Capability for the VTX plugin interface. It automatically generates the necessary bindings at compile time, allowing you to focus on implementing the logic.
Installation
Add this to your Cargo.toml:
[]
= "1.2.6"
Usage
Implementing a Plugin
You no longer need to manually configure wit-bindgen. Simply import the types and the macro provided by the protocol crate.
use *;
use Guest;
;
// Implement the protocol trait
// Register the plugin
export!;
Advanced: Accessing Raw WIT
If you need the raw WIT content or path (e.g., for tooling):
// Access the WIT string content directly
let content = WIT_CONTENT;
// Get the path to the bundled file
let path = get_wit_path;
Versioning
This crate follows Semantic Versioning.
Major.Minor.Patchcorresponds strictly to the version of thevtx:apiinterface.