#nbd #network-block-device

nbd

Rust library for NBD (network block device) servers and clients

7 releases

Uses old Rust 2015

0.2.3 May 9, 2020
0.2.2 Dec 27, 2019
0.2.1 Aug 18, 2018
0.1.2 Jul 24, 2018

#496 in Network programming

Download history 84/week @ 2022-03-10 251/week @ 2022-03-17 175/week @ 2022-03-24 101/week @ 2022-03-31 189/week @ 2022-04-07 301/week @ 2022-04-14 236/week @ 2022-04-21 168/week @ 2022-04-28 345/week @ 2022-05-05 273/week @ 2022-05-12 190/week @ 2022-05-19 145/week @ 2022-05-26 158/week @ 2022-06-02 260/week @ 2022-06-09 131/week @ 2022-06-16 173/week @ 2022-06-23

746 downloads per month
Used in 3 crates

MIT/Apache

28KB
551 lines

rust-nbd

Network block device protocol implementation in Rust. For now, only one export and not all features are supported in server.

Accepts a Read+Write+Seek as a data to be exposed in server mode. Provides Read+Write+Seek in client mode. Underlying connection is Read+Write, usage of bufstream crate is recommended.

This library is IO-agnostic, but async is not supported.

See server example or client example.

This is a rather early version.


lib.rs:

First sketch of NBD (Network block device) protocol support in Rust API is not stable yet, obviously

https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md

Dependencies

~120KB