Skip to main content

Crate rustdrop

Crate rustdrop 

Source
Expand description

RustDrop – privacy-first, lightning-fast peer-to-peer file transfer for local networks.

§Crate layout

moduleresponsibility
cryptoX25519 key exchange, HKDF key schedule, ChaCha20-Poly1305 channels, trust codes
discoverymDNS/Zeroconf announce + browse
protocollength-prefixed framing, handshake & control messages, data frames
transfersender/receiver state machines, manifests, progress reporting
uiindicatif progress bars and dialoguer prompts (CLI only)
cli / commandsargument parsing and command handlers
errorthe 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::cli and 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.