cntr-fuse-sys-0.4.1/.cargo_vcs_info.json0000644000000001121401720725200136100ustar { "git": { "sha1": "e95e562691b4e4a8a11c0c2c6c44e259b3c76d6a" } } cntr-fuse-sys-0.4.1/Cargo.toml0000644000000021621401720725200116150ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "cntr-fuse-sys" version = "0.4.1" authors = ["Jörg Thalheim "] build = "build.rs" links = "fuse" description = "FFI bindings to the FUSE kernel interface and libfuse" homepage = "https://github.com/Mic92/cntr-fuse" documentation = "https://docs.rs/fuse" readme = "README.md" keywords = ["fuse", "filesystem", "system", "bindings"] categories = ["external-ffi-bindings", "filesystem", "os::unix-apis"] license = "MIT" repository = "https://github.com/Mic92/cntr-fuse" [dependencies] [build-dependencies.pkg-config] version = "0.3.14" [features] libfuse = [] cntr-fuse-sys-0.4.1/Cargo.toml.orig010064400017500000144000000011361401720713400153020ustar 00000000000000[package] name = "cntr-fuse-sys" edition = "2018" version = "0.4.1" authors = ["Jörg Thalheim "] description = "FFI bindings to the FUSE kernel interface and libfuse" documentation = "https://docs.rs/fuse" homepage = "https://github.com/Mic92/cntr-fuse" repository = "https://github.com/Mic92/cntr-fuse" readme = "README.md" keywords = ["fuse", "filesystem", "system", "bindings"] categories = ["external-ffi-bindings", "filesystem", "os::unix-apis"] license = "MIT" build = "build.rs" links = "fuse" [build-dependencies] pkg-config = "0.3.14" [dependencies] [features] libfuse = [] cntr-fuse-sys-0.4.1/LICENSE.md010064400017500000144000000021621322267464700140350ustar 00000000000000The MIT License (MIT) ===================== Copyright © `2013` `Andreas Neuhaus` `https://zargony.com/` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. cntr-fuse-sys-0.4.1/README.md010064400017500000144000000002571374621113600137020ustar 00000000000000# Rust FUSE FFI bindings This crate contains FFI bindings to the FUSE kernel interface and libfuse. See the [fuse crate](https://crates.io/crates/fuse) for more information. cntr-fuse-sys-0.4.1/build.rs010064400017500000144000000006071374621113600140670ustar 00000000000000#[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(); } cntr-fuse-sys-0.4.1/src/lib.rs010064400017500000144000000014241374621113600143230ustar 00000000000000//! Native FFI bindings to libfuse. //! //! This is a small set of bindings that are required to mount/unmount FUSE filesystems and //! open/close a fd to the FUSE kernel driver. #![warn(missing_debug_implementations, rust_2018_idioms)] #![allow(missing_docs)] use std::os::raw::{c_char, c_int}; #[repr(C)] #[derive(Debug)] pub struct fuse_args { pub argc: c_int, pub argv: *const *const c_char, pub allocated: c_int, } extern "C" { // *_compat25 functions were introduced in FUSE 2.6 when function signatures changed. // Therefore, the minimum version requirement for *_compat25 functions is libfuse-2.6.0. pub fn fuse_mount_compat25(mountpoint: *const c_char, args: *const fuse_args) -> c_int; pub fn fuse_unmount_compat22(mountpoint: *const c_char); }