1 unstable release

Uses old Rust 2015

0.2.3 Jul 31, 2023
0.2.2 Jul 31, 2023
0.2.1 Jul 31, 2023
0.2.0 Jul 27, 2023

#214 in #encode

Download history 1159/week @ 2024-07-13 984/week @ 2024-07-20 954/week @ 2024-07-27 802/week @ 2024-08-03 686/week @ 2024-08-10 681/week @ 2024-08-17 622/week @ 2024-08-24 749/week @ 2024-08-31 749/week @ 2024-09-07 739/week @ 2024-09-14 744/week @ 2024-09-21 844/week @ 2024-09-28 948/week @ 2024-10-05 488/week @ 2024-10-12 785/week @ 2024-10-19 777/week @ 2024-10-26

3,130 downloads per month
Used in p9

BSD-3-Clause

12KB
255 lines

p9 - Server implementation of the 9p file system protocol

This directory contains the protocol definition and a server implementation of the 9p file system protocol.

  • wire_format_derive - A procedural macro that derives the serialization and de-serialization implementation for a struct into the 9p wire format.
  • src/protocol - Defines all the messages used in the 9p protocol. Also implements serialization and de-serialization for some base types (integers, strings, vectors) that form the foundation of all 9p messages. Wire format implementations for all other messages are derived using the wire_format_derive macro.
  • src/server.rs - Implements a full 9p server, carrying out file system requests on behalf of clients.

lib.rs:

Derives a 9P wire format encoding for a struct by recursively calling WireFormat::encode or WireFormat::decode on the fields of the struct. This is only intended to be used from within the p9 crate.

Dependencies

~1.5MB
~36K SLoC