7 unstable releases

0.4.0 Feb 19, 2025
0.3.2 Mar 25, 2024
0.3.1 Sep 27, 2023
0.3.0 Jan 23, 2023
0.1.0 Aug 11, 2020

#289 in Unix APIs

Download history 1113/week @ 2024-11-21 1007/week @ 2024-11-28 1212/week @ 2024-12-05 1110/week @ 2024-12-12 1129/week @ 2024-12-19 232/week @ 2024-12-26 1999/week @ 2025-01-02 1579/week @ 2025-01-09 1823/week @ 2025-01-16 1947/week @ 2025-01-23 2270/week @ 2025-01-30 3336/week @ 2025-02-06 2097/week @ 2025-02-13 1703/week @ 2025-02-20 1707/week @ 2025-02-27 1614/week @ 2025-03-06

8,099 downloads per month
Used in stratisd

MPL-2.0 license

70KB
1.5K SLoC

libblkid-rs

Rust bindings for libblkid

libblkid lowest supported version

The lowest supported version of libblkid used with these bindings is 2.33.2.


lib.rs:

libblkid-rs

libblkid_rs provides programmatic access in Rust to the C library libblkid.

Design

The organization of the modules reflects the organization of the modules in the C library. The main goal of this library is to maintain the same general structure while taking advantage of Rust idioms.

List of methods modified

  • blkid_devno_to_wholedisk - This bindings method handles the buffer internally and therefore does not require a buffer argument. The limit for the maximum size of the returned device name is 4096 bytes. Please open an issue if more characters are required.
  • blkid_get_dev_size - This method takes a &Path in the bindings and provides libblkid with the desired file descriptor.

Dependencies

~0.3–3MB
~50K SLoC