pub fn wit_dir() -> &'static PathExpand description
Absolute path to the wit/ directory bundled with this crate.
Returns the wit/ subdirectory under the crate’s manifest directory,
resolved at compile time via CARGO_MANIFEST_DIR. This points to the
camel-wit source directory (local path dep or registry unpack location).
§Stability
This path is stable during builds and in development tooling, but is
not a reliable runtime path in redistributed binaries — after
cargo install, the source tree is no longer available and callers may
see a missing-directory warning.
§When to use
Prefer the *_WIT string constants (PLUGIN_WIT, BEAN_WIT, FULL_WIT)
for embedding WIT content robustly. Use this function only for CLI tooling
that needs filesystem access at build/dev time (e.g. wasm-tools,
wit-bindgen CLI invoked from a build script).