#btrfs #ffi #btrfsutil

libbtrfsutil

libbtrfsutil bindings

10 releases (6 breaking)

0.7.1 Feb 1, 2024
0.6.0 Aug 23, 2023
0.5.2 Jan 3, 2023
0.5.1 Dec 8, 2022
0.2.0 Mar 31, 2022

#409 in Filesystem

35 downloads per month
Used in stromatekt

MIT license

34KB
705 lines

libbtrfsutil-rs

Crates.io docs.rs

Rust bindings for libbtrfsutil.

Requirements

libbtrfsutil-sys generates the bindings at build time through bindgen. As such, you need to have libclang and libbtrfsutil installed on your system. To install them on Fedora:

# dnf install clang "pkgconfig(libbtrfsutil)"

Development

Run test:

$ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER='sudo -E' cargo test

Dependencies

~0.2–3.5MB
~52K SLoC