#api-bindings

libnv

Safe and rustic wrapper around libnv-sys

10 releases

Uses old Rust 2015

0.4.2 Mar 9, 2023
0.4.1 Jan 18, 2023
0.3.0 Apr 17, 2022
0.2.3 Oct 21, 2021
0.1.1 Nov 7, 2017

#216 in Data structures

Download history 13/week @ 2022-11-28 12/week @ 2022-12-05 23/week @ 2022-12-12 16/week @ 2022-12-19 14/week @ 2022-12-26 12/week @ 2023-01-02 11/week @ 2023-01-09 100/week @ 2023-01-16 26/week @ 2023-01-23 32/week @ 2023-01-30 42/week @ 2023-02-06 68/week @ 2023-02-13 87/week @ 2023-02-20 43/week @ 2023-02-27 121/week @ 2023-03-06 61/week @ 2023-03-13

321 downloads per month
Used in 4 crates (2 directly)

BSD-2-Clause

65KB
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.2.2"

Usage

Read the docs.

Dependencies

~160KB