Skip to main content

host_lib_path

Function host_lib_path 

Source
pub fn host_lib_path(
    crate_dir: &Path,
    crate_name: &str,
) -> Result<PathBuf, BenchError>
Available on crate feature builders only.
Expand description

Finds the host library path for UniFFI binding generation.

UniFFI requires a host-compiled library to generate bindings. This function locates that library in the target directory.

§Arguments

  • crate_dir - Path to the crate directory
  • crate_name - Name of the crate (used to construct library filename)

§Returns

Path to the host library (e.g., libfoo.dylib on macOS, libfoo.so on Linux)