Skip to main content

wit_dir

Function wit_dir 

Source
pub fn wit_dir() -> &'static Path
Expand description

Absolute path to the wit/ directory bundled with this crate.

This path is resolved at compile time via CARGO_MANIFEST_DIR and points to the camel-wit source directory (local path dep or registry unpack location). It is stable during builds and in development tooling, but is not a reliable runtime path in redistributed binaries.

Prefer the *_WIT string constants for embedding WIT content robustly. Use this only for CLI tooling that needs filesystem access at build/dev time (e.g. wasm-tools, wit-bindgen CLI invoked from a build script).