extern crate pkg_config;

#[cfg(not(target_os = "macos"))]
static LIBFUSE_NAME: &str = "fuse";

#[cfg(target_os = "macos")]
static LIBFUSE_NAME: &str = "osxfuse";

fn main () {
    pkg_config::Config::new().atleast_version("2.6.0").probe(LIBFUSE_NAME).unwrap();
}

extern crate pkg_config;

fn main () {
    pkg_config::probe_library("fuse").unwrap();
}

--- 
+++ 
@@ -1,5 +1,11 @@
 extern crate pkg_config;
 
+#[cfg(not(target_os = "macos"))]
+static LIBFUSE_NAME: &str = "fuse";
+
+#[cfg(target_os = "macos")]
+static LIBFUSE_NAME: &str = "osxfuse";
+
 fn main () {
-    pkg_config::probe_library("fuse").unwrap();
+    pkg_config::Config::new().atleast_version("2.6.0").probe(LIBFUSE_NAME).unwrap();
 }
Use recommended pkg-config method to discover libfuse
