cp2 0.3.0

Pure-Rust cp & rsync-style copy/sync tool for local or network files, with delta transfer and verification (Linux, macOS, Windows)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The cp2 peer wire protocol: message types ([`Frame`]) and the
//! length-prefixed, optionally-compressed codec ([`stream`]).
//!
//! This layer is about *messages*, not connections: the codec works over any
//! `tokio::io::AsyncRead`/`AsyncWrite` byte stream and has no knowledge of
//! SSH or any other transport (that lives in `crate::transport`). The
//! [`sync`](crate::sync) layer decides *what* to send; this layer defines
//! *how* it is serialized.

pub mod error;
pub mod frame;
pub mod stream;

pub use error::ProtocolError;
pub use frame::{
    BatchFile, BatchItem, BUILD_FINGERPRINT, FileKind, FileMeta, Frame, LinkKind, HardlinkSpec, LinkSpec, SpecialSpec,
    SignatureEntry, SkippedFile, TargetOs, VERSION_BANNER,
};