7 releases

Uses old Rust 2015

0.2.1 Mar 9, 2023
0.2.0 Jan 18, 2023
0.1.5 Nov 6, 2017

#209 in Video

Download history 31/week @ 2023-02-05 47/week @ 2023-02-12 72/week @ 2023-02-19 32/week @ 2023-02-26 101/week @ 2023-03-05 66/week @ 2023-03-12 30/week @ 2023-03-19 25/week @ 2023-03-26 35/week @ 2023-04-02 29/week @ 2023-04-09 40/week @ 2023-04-16 15/week @ 2023-04-23 48/week @ 2023-04-30 33/week @ 2023-05-07 27/week @ 2023-05-14 19/week @ 2023-05-21

128 downloads per month
Used in 5 crates (4 directly)


198 lines



Rust bindings to libnv and nbpairs.

What's that?

This library is safe rust bindings to FreeBSD's Name/value pairs library (libnv). It's poor's man Map<&str,T> where T could one of a few lucky types.

FreeBSD's libnv is not the same as libnvpair from zfs project and hey aren't binary compatible. This library supports both. I have no intention of having 1:1 mapping with either of the libraries - I only implement what I need in libzetta, however, if you need something feel free to open an issue or send a PR.


If you have FreeBSD you already have library available in base system. On linux, you will have to figure it out on your own.

libnv is available on crates.io and can be included in your Cargo enabled project like this:

libnv= "0.4.2"


Read the docs.


Rust FFI bindings for FreeBSD's libnv library

These are raw, unsafe FFI bindings. Here be dragons! You probably shouldn't use this crate directly. Instead, you should use the libnv crate.


~34K SLoC