wit-bindgen-cli 0.56.0

CLI tool to generate bindings for WIT documents and the component model.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ args = '--bitflags-path crate::my_bitflags'

include!(env!("BINDINGS"));

pub(crate) use wit_bindgen::rt::bitflags as my_bitflags;

struct Component;

export!(Component);

use crate::exports::my::inline::t::{Bar, Guest};

impl Guest for Component {
    fn get_flag() -> Bar {
        Bar::BAZ
    }
}