#network-block-device #nbd

nbdkit

Rust bindings to the NBDKit framework for creating Network Block Device servers

2 unstable releases

0.2.0 Oct 18, 2021
0.1.0 Oct 27, 2020

#247 in Filesystem

Download history 6/week @ 2022-03-04 33/week @ 2022-03-11 115/week @ 2022-03-18 105/week @ 2022-03-25 54/week @ 2022-04-01 143/week @ 2022-04-08 169/week @ 2022-04-15 70/week @ 2022-04-22 49/week @ 2022-04-29 60/week @ 2022-05-06 99/week @ 2022-05-13 59/week @ 2022-05-20 51/week @ 2022-05-27 32/week @ 2022-06-03 114/week @ 2022-06-10 65/week @ 2022-06-17

270 downloads per month

BSD-2-Clause

54KB
790 lines

NBDKit

Rust bindings to the Network Block Device Kit library.

Crates.io Documentation Build Status

Overview

NBDKit is a framework for developing Network Block Device servers. Most of the logic lives in the C code, but there are plugins to implement a server in another language, such as Rust.

Usage

To create an NBD server in Rust, you must implement the nbdkit::Server trait, and register it with nbdkit::plugin!, like this:

[dependencies]
nbdkit = "0.1.0"
use nbdkit::*;

#[derive(Default)]
struct MyPlugin {
    // ...
}

impl Server for MyPlugin {
    // ...
}

plugin!(MyPlugin {write_at, trim, ...});

Minimum Supported Rust Version (MSRV)

nbdkit is supported on Rust 1.46.0 and higher. The MSRV will not be changed in the future without raising the major or minor version.

License

nbdkit is primarily distributed under the 2-clause BSD liense. See LICENSE for details.

Dependencies

~16–390KB