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
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.75"
name = "runsync-transfer"
version = "2026.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-throughput P2P file transfer engine: adaptive compression, end-to-end AEAD, parallel chunked pipeline over QUIC or any async transport."
readme = "README.md"
keywords = [
    "p2p",
    "file-transfer",
    "quic",
    "compression",
    "sync",
]
categories = [
    "network-programming",
    "compression",
    "filesystem",
]
license = "PolyForm-Noncommercial-1.0.0"
repository = "https://github.com/dustinng2601/RunSync"

[features]
default = [
    "quic",
    "zstd-codec",
    "lz4-codec",
]
lz4-codec = ["dep:lz4_flex"]
quic = [
    "dep:quinn",
    "dep:rustls",
]
test-certs = [
    "dep:rcgen",
    "quic",
]
zstd-codec = ["dep:zstd"]

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

[[example]]
name = "codecbench"
path = "examples/codecbench.rs"
required-features = [
    "zstd-codec",
    "lz4-codec",
]

[[example]]
name = "rst"
path = "examples/rst.rs"
required-features = ["test-certs"]

[[test]]
name = "end_to_end"
path = "tests/end_to_end.rs"

[[test]]
name = "hostile"
path = "tests/hostile.rs"

[[test]]
name = "quic"
path = "tests/quic.rs"

[dependencies.aes-gcm]
version = "0.11"

[dependencies.async-trait]
version = "0.1"

[dependencies.blake3]
version = "1"
features = ["rayon"]

[dependencies.chacha20poly1305]
version = "0.11"

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.hkdf]
version = "0.12"

[dependencies.lz4_flex]
version = "0.11"
features = ["std"]
optional = true
default-features = false

[dependencies.num_cpus]
version = "1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.quinn]
version = "0.11"
features = [
    "runtime-tokio",
    "rustls-ring",
]
optional = true
default-features = false

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.rayon]
version = "1"

[dependencies.rcgen]
version = "0.13"
optional = true

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
]
optional = true
default-features = false

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "fs",
    "io-util",
    "sync",
    "macros",
    "time",
    "signal",
]

[dependencies.tracing]
version = "0.1"

[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]

[dependencies.zeroize]
version = "1"

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

[profile.bench]
inherits = "release"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 4
panic = "unwind"
overflow-checks = true