rsfdisk-sys

Crates.iorsfdisk-sys
lib.rsrsfdisk-sys
version0.2.1
sourcesrc
created_at2024-09-30 14:19:17.562624
updated_at2024-10-15 07:22:48.114891
descriptionRaw FFI bindings to the `util-linux/libfdisk` C library
homepagehttps://github.com/nickpiaddo/rsfdisk-sys
repositoryhttps://github.com/nickpiaddo/rsfdisk-sys
max_upload_size
id1391764
size31,351
(nickpiaddo)

documentation

https://docs.rs/rsfdisk-sys

README

rsfdisk-sys

Crates.io License Crates.io MSRV


Raw Rust FFI bindings to the util-linux/libfdisk C library.


Supported library version

This crate requires libfdisk version 2.39.2 or later.

Build dependencies

Install the following packages beforehand to build this crate:

  • util-linux: to generate Rust bindings from libfdisk's header files.
  • libclang: to satisfy the dependency of bindgen on libclang.
  • pkg-config: to detect system libraries.

This in addition to the Rust toolchain.

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 libfdisk-dev libclang-dev pkg-config

License

Copyright (c) 2023 Nick Piaddo

SPDX-License-Identifier: Apache-2.0 OR MIT

Commit count: 12

cargo fmt