Expand description
RustDrop – privacy-first, lightning-fast peer-to-peer file transfer for local networks.
§Crate layout
| module | responsibility |
|---|---|
crypto | X25519 key exchange, HKDF key schedule, ChaCha20-Poly1305 channels, trust codes |
discovery | mDNS/Zeroconf announce + browse |
protocol | length-prefixed framing, handshake & control messages, data frames |
transfer | sender/receiver state machines, manifests, progress reporting |
ui | indicatif progress bars and dialoguer prompts (CLI only) |
cli / commands | argument parsing and command handlers |
error | the crate-wide RustDropError |
The binary in src/main.rs is a thin wrapper: parse args, pick a command,
print errors. Everything interesting lives here so it can be unit-tested
and reused.
Re-exports§
pub use error::Result;pub use error::RustDropError;
Modules§
- cli
- Command line surface (definitions only – logic lives in
crate::commands). - commands
- Command handlers – the glue between
crate::cliand the core library. - crypto
- Authenticated encryption for the RustDrop wire protocol.
- discovery
- Local network discovery via mDNS/Zeroconf.
- error
- protocol
- Wire protocol: framing, handshake and control messages.
- transfer
- Transfer orchestration shared by the sender and the receiver.
- ui
- Terminal presentation: progress bars and prompts.