8 releases

Uses old Rust 2015

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

#1936 in Development tools

Download history 3/week @ 2024-07-22 8/week @ 2024-07-29 16/week @ 2024-08-05 15/week @ 2024-08-12 15/week @ 2024-08-19 31/week @ 2024-08-26 8/week @ 2024-09-02 14/week @ 2024-09-09 11/week @ 2024-09-16 76/week @ 2024-09-23 10/week @ 2024-09-30 18/week @ 2024-10-07 34/week @ 2024-10-14 8/week @ 2024-10-21 5/week @ 2024-10-28 16/week @ 2024-11-04

64 downloads per month
Used in 7 crates (4 directly)

BSD-2-Clause

11KB
198 lines

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.


lib.rs:

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.

Dependencies

~0–1.9MB
~37K SLoC