tfs-fuse-sys 0.1.1

Low-level, incomplete fuse bindings for use in tfs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate pkg_config;

use std::env;

fn main() {
    let target = env::var("TARGET").unwrap();
    if target.ends_with("-apple-darwin") {
        // Use libosxfuse on OS X
        pkg_config::find_library("osxfuse").unwrap();
    } else if target.ends_with("-unknown-linux-gnu") || target.ends_with("-unknown-linux-musl") {
        // Use libfuse on Linux
        pkg_config::find_library("fuse").unwrap();
    } else {
        // Not supported
        panic!("{} is not a supported target for tfs-fuse-sys!", target);
    }
}