Skip to main content

create_from_wit

Function create_from_wit 

Source
pub fn create_from_wit(
    wit_path: &Path,
    world: &str,
    patterns: &[&str],
) -> Result<Vec<u8>>
Expand description

Create an interceptor component for a WIT world.

  • wit_path: path to WIT file or directory
  • world: world name whose exports define the interceptor contract
  • patterns: match patterns for selective interception (empty = intercept all)

Returns the validated component bytes.