libnv

Crates.iolibnv
lib.rslibnv
version0.4.3
sourcesrc
created_at2017-11-07 20:27:19.334941
updated_at2023-07-27 21:03:24.740202
descriptionSafe and rustic wrapper around libnv-sys.
homepage
repositoryhttps://github.com/Inner-Heaven/libnv-rs
max_upload_size
id38519
size105,866
Andrey Snow (andoriyu)

documentation

README

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.

Commit count: 87

cargo fmt