1use std::path::PathBuf;
2
3pub const WIT_CONTENT: &str = include_str!("../wit/vtx.wit");
4
5pub fn get_wit_path() -> PathBuf {
6 PathBuf::from(env!("CARGO_MANIFEST_DIR"))
7 .join("wit")
8 .join("vtx.wit")
9}
10
11#[cfg(feature = "guest")]
12#[doc(hidden)]
13pub mod guest_bindings {
14 wit_bindgen::generate!({
15 world: "plugin",
16 path: "wit",
17 pub_export_macro: true,
18 ownership: Borrowing {
19 duplicate_if_necessary: true
20 }
21 });
22}
23
24#[cfg(feature = "guest")]
25pub mod types {
26 pub use super::guest_bindings::vtx::api::types::*;
28
29 pub use super::guest_bindings::vtx::api::sql;
31
32 pub use super::guest_bindings::vtx::api::stream_io;
34}
35
36#[cfg(feature = "guest")]
37pub mod exports {
38 pub use super::guest_bindings::Guest;
39}
40
41
42#[cfg(feature = "guest")]
43pub use wit_bindgen;