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

#304 in Unix APIs

Download history 1243/week @ 2024-12-04 1138/week @ 2024-12-11 1217/week @ 2024-12-18 230/week @ 2024-12-25 1605/week @ 2025-01-01 1906/week @ 2025-01-08 1623/week @ 2025-01-15 1852/week @ 2025-01-22 2217/week @ 2025-01-29 2847/week @ 2025-02-05 2777/week @ 2025-02-12 1634/week @ 2025-02-19 1570/week @ 2025-02-26 1851/week @ 2025-03-05 1033/week @ 2025-03-12 988/week @ 2025-03-19

5,922 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
~49K SLoC