#nbd #network-block-device

nbd

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

8 releases

Uses old Rust 2015

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

#1128 in Network programming

Download history 259/week @ 2022-12-04 381/week @ 2022-12-11 603/week @ 2022-12-18 197/week @ 2022-12-25 179/week @ 2023-01-01 321/week @ 2023-01-08 332/week @ 2023-01-15 166/week @ 2023-01-22 213/week @ 2023-01-29 174/week @ 2023-02-05 205/week @ 2023-02-12 289/week @ 2023-02-19 172/week @ 2023-02-26 209/week @ 2023-03-05 294/week @ 2023-03-12 383/week @ 2023-03-19

1,062 downloads per month
Used in 4 crates

MIT/Apache

28KB
558 lines

rust-nbd

Network block device protocol implementation in Rust. Not all features are currently 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