6 releases

0.3.2 Mar 25, 2024
0.3.1 Sep 27, 2023
0.3.0 Jan 23, 2023
0.2.0 Apr 20, 2022
0.1.0 Aug 11, 2020

#142 in Unix APIs

Download history 1237/week @ 2024-06-02 971/week @ 2024-06-09 1242/week @ 2024-06-16 1446/week @ 2024-06-23 1346/week @ 2024-06-30 1509/week @ 2024-07-07 1383/week @ 2024-07-14 2274/week @ 2024-07-21 1576/week @ 2024-07-28 2007/week @ 2024-08-04 2941/week @ 2024-08-11 2212/week @ 2024-08-18 2809/week @ 2024-08-25 1308/week @ 2024-09-01 1701/week @ 2024-09-08 1562/week @ 2024-09-15

7,426 downloads per month
Used in stratisd

MPL-2.0 license

68KB
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.2–2.8MB
~46K SLoC