| Crates.io | rsblkid-sys |
| lib.rs | rsblkid-sys |
| version | 0.2.2 |
| created_at | 2024-09-30 13:35:36.687306+00 |
| updated_at | 2024-10-11 06:09:18.76759+00 |
| description | Raw FFI bindings to the `util-linux/libblkid` C library |
| homepage | https://github.com/nickpiaddo/rsblkid-sys |
| repository | https://github.com/nickpiaddo/rsblkid-sys |
| max_upload_size | |
| id | 1391717 |
| size | 31,071 |
Raw Rust FFI bindings to the util-linux/libblkid C library.
This crate requires libblkid version 2.39.2 or later.
To build this crate, install the following packages in addition to the Rust toolchain.
util-linux: to generate Rust bindings from libblkid's header files.libclang: to satisfy the dependency of bindgen on libclang.pkg-config: to detect system libraries.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
As root, issue the following command:
apk add util-linux-dev clang-libclang pkgconfig
sudo apt-get install libblkid-dev libclang-dev pkg-config
Copyright (c) 2023 Nick Piaddo
SPDX-License-Identifier: Apache-2.0 OR MIT