9 releases

Uses old Rust 2015

0.3.1 Mar 28, 2024
0.3.0 Feb 23, 2023
0.2.3 May 9, 2020
0.2.2 Dec 27, 2019
0.1.2 Jul 24, 2018

#203 in Network programming

Download history 601/week @ 2024-07-21 770/week @ 2024-07-28 427/week @ 2024-08-04 2816/week @ 2024-08-11 2991/week @ 2024-08-18 4066/week @ 2024-08-25 2229/week @ 2024-09-01 1949/week @ 2024-09-08 2219/week @ 2024-09-15 4389/week @ 2024-09-22 2743/week @ 2024-09-29 2738/week @ 2024-10-06 2852/week @ 2024-10-13 1527/week @ 2024-10-20 2965/week @ 2024-10-27 2382/week @ 2024-11-03

9,940 downloads per month
Used in 4 crates

MIT/Apache

29KB
566 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

~115KB