#[cfg(feature = "libfuse")] #[cfg(not(target_os = "macos"))] const LIBFUSE_NAME: &str = "fuse"; #[cfg(feature = "libfuse")] #[cfg(target_os = "macos")] const LIBFUSE_NAME: &str = "osxfuse"; fn main() { #[cfg(feature = "libfuse")] pkg_config::Config::new() .atleast_version("2.6.0") .probe(LIBFUSE_NAME) .map_err(|e| eprintln!("{}", e)) .unwrap(); }