rsblkid-sys
Raw Rust FFI bindings to the util-linux/libblkid C library.
Supported library version
This crate requires libblkid version 2.39.2 or later.
Build dependencies
To build this crate, install the following packages in addition to the Rust toolchain.
util-linux: to generate Rust bindings fromlibblkid's header files.libclang: to satisfy the dependency ofbindgenonlibclang.pkg-config: to detect system libraries.
NixOS
Temporarily install the required packages with:
nix-shell -p util-linux.dev libclang.lib pkg-config
or permanently with:
nix-env -iA nixos.util-linux.dev nixos.libclang.lib nixos.pkg-config
Alpine Linux
As root, issue the following command:
apk add util-linux-dev clang-libclang pkgconfig
Ubuntu
sudo apt-get install libblkid-dev libclang-dev librust-pkg-config-dev
License
Copyright (c) 2023 Nick Piaddo
SPDX-License-Identifier: Apache-2.0 OR MIT