vtx_protocol/
lib.rs

1use std::path::PathBuf;
2
3/// The raw content of the WIT interface definition.
4pub const WIT_CONTENT: &str = include_str!("../wit/vtx.wit");
5
6/// Returns the absolute path to the bundled vtx.wit file.
7///
8/// Useful for build scripts or CLI tools that need to reference the protocol definition.
9pub fn get_wit_path() -> PathBuf {
10    PathBuf::from(env!("CARGO_MANIFEST_DIR"))
11        .join("wit")
12        .join("vtx.wit")
13}