11 releases

Uses old Rust 2015

0.4.3 Jul 27, 2023
0.4.2 Mar 9, 2023
0.4.1 Jan 18, 2023
0.3.0 Apr 17, 2022
0.1.1 Nov 7, 2017

#227 in Operating systems

Download history 17/week @ 2024-07-22 32/week @ 2024-07-29 25/week @ 2024-08-05 37/week @ 2024-08-12 24/week @ 2024-08-19 41/week @ 2024-08-26 23/week @ 2024-09-02 32/week @ 2024-09-09 31/week @ 2024-09-16 94/week @ 2024-09-23 24/week @ 2024-09-30 28/week @ 2024-10-07 47/week @ 2024-10-14 20/week @ 2024-10-21 23/week @ 2024-10-28 32/week @ 2024-11-04

125 downloads per month
Used in 6 crates (2 directly)

BSD-2-Clause

66KB
1.5K SLoC

libnv

Crates.io

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.

Installation

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:

[dependencies]
libnv= "0.4.2"

Usage

Read the docs.

Dependencies

~210KB