Bug: 317282512

Clone this repo:
  1. e6e2706 add cargo_embargo.json and Android.bp am: 8b418a36cf by Frederick Mayle · 3 months ago main
  2. 8b418a3 add cargo_embargo.json and Android.bp by Frederick Mayle · 3 months ago simpleperf-release
  3. 3757e9a Merge remote-tracking branch 'origin/upstream' am: ba3b67e749 by Inna Palant · 3 months ago
  4. ba3b67e Merge remote-tracking branch 'origin/upstream' by Inna Palant · 3 months ago
  5. 53a9fd9 Import 'p9' crate by Frederick Mayle · 4 months ago upstream

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.