runsync-transfer 2026.1.0

High-throughput P2P file transfer engine: adaptive compression, end-to-end AEAD, parallel chunked pipeline over QUIC or any async transport.
Documentation
[package]
name = "runsync-transfer"
# Calendar versioning, matching SoundSeek: year, release within the year, then
# patch. A `0.x` number would have implied this is pre-release, which stopped
# being true once the wire format was pinned and peers began rejecting each
# other cleanly across versions.
version = "2026.1.0"
edition = "2021"
rust-version = "1.75"
description = "High-throughput P2P file transfer engine: adaptive compression, end-to-end AEAD, parallel chunked pipeline over QUIC or any async transport."
license = "PolyForm-Noncommercial-1.0.0"
readme = "README.md"
repository = "https://github.com/dustinng2601/RunSync"
keywords = ["p2p", "file-transfer", "quic", "compression", "sync"]
categories = ["network-programming", "compression", "filesystem"]
# Nothing excluded: the examples are declared in this manifest, so dropping
# them from the package would leave it referencing files that are not there.

[lib]
name = "runsync_transfer"
path = "src/lib.rs"

[features]
default = ["quic", "zstd-codec", "lz4-codec"]
# Bundled quinn transport adapter. Omit if you want to plug your own QUIC stack.
quic = ["dep:quinn", "dep:rustls"]
zstd-codec = ["dep:zstd"]
lz4-codec = ["dep:lz4_flex"]
# Self-signed cert helpers, only for tests/examples.
test-certs = ["dep:rcgen", "quic"]

[dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "fs", "io-util", "sync", "macros", "time", "signal"] }
futures-util = { version = "0.3", default-features = false, features = ["std"] }
async-trait = "0.1"
thiserror = "2"
tracing = "0.1"
rayon = "1"
parking_lot = "0.12"
num_cpus = "1"

# hashing / integrity
blake3 = { version = "1", features = ["rayon"] }

# crypto
chacha20poly1305 = "0.11"
aes-gcm = "0.11"
x25519-dalek = { version = "2", features = ["static_secrets"] }
hkdf = "0.12"
sha2 = "0.10"
rand_core = { version = "0.6", features = ["getrandom"] }
subtle = "2"
zeroize = "1"

# compression (optional)
zstd = { version = "0.13", optional = true }
lz4_flex = { version = "0.11", optional = true, default-features = false, features = ["std"] }

# transport (optional)
# No default features: they pull in the platform certificate verifier, and
# with it webpki-root-certs, jni, walkdir, schannel and security-framework.
# This engine pins the peer's certificate, so a system trust store is dead
# weight — and `webpki-root-certs` is CDLA-licensed, which would otherwise
# leak a data licence into every downstream build.
quinn = { version = "0.11", optional = true, default-features = false, features = [
    "runtime-tokio",
    "rustls-ring",
] }
rustls = { version = "0.23", optional = true, default-features = false, features = ["ring", "std"] }
rcgen = { version = "0.13", optional = true }

[dev-dependencies]
tokio = { version = "1", features = ["full"] }
tempfile = "3"
rand = "0.8"
async-trait = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 4
panic = "unwind"
# On by default in debug and off in release, which is the wrong way round for
# this crate: the test suite runs in release (the codec is far too slow to
# exercise unoptimised), so without this an arithmetic overflow in a codec or
# an offset computation would wrap silently and be tested as if correct. It is
# a few percent, and this only applies when this crate is the root — a
# dependent's own profile governs their build.
overflow-checks = true

[profile.bench]
inherits = "release"

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[[example]]
name = "rst"
required-features = ["test-certs"]

[[example]]
name = "codecbench"
required-features = ["zstd-codec", "lz4-codec"]