tus-protocol 0.1.0

Rust implementation of the TUS resumable upload protocol
# 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 = "2024"
rust-version = "1.92"
name = "tus-protocol"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust implementation of the TUS resumable upload protocol"
homepage = "https://github.com/sagikazarmark/tus-rs"
readme = "README.md"
keywords = [
    "tus",
    "upload",
    "resumable",
    "http",
    "protocol",
]
categories = [
    "web-programming::http-server",
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sagikazarmark/tus-rs"

[package.metadata.docs.rs]
features = [
    "native",
    "storage-file",
    "storage-memory",
    "state-file",
    "state-memory",
    "lock-file",
    "lock-memory",
    "checksum",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
checksum = [
    "dep:crc32fast",
    "dep:md5",
    "dep:sha1",
    "dep:sha2",
]
conformance-lock = ["tokio/time"]
conformance-state = []
conformance-storage = []
default = []
fuzzing = []
lock-file = [
    "native",
    "dep:fs2",
    "tokio/fs",
    "tokio/rt",
    "tokio/time",
]
lock-memory = [
    "native",
    "tokio/sync",
    "tokio/time",
]
native = [
    "dep:tokio",
    "dep:tokio-util",
]
state-file = [
    "native",
    "dep:serde_json",
    "tokio/fs",
    "tokio/io-util",
]
state-memory = []
storage-file = [
    "native",
    "tokio/fs",
    "tokio/io-util",
]
storage-memory = []

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.crc32fast]
version = "1"
optional = true

[dependencies.fs2]
version = "0.4"
optional = true

[dependencies.futures-core]
version = "0.3"

[dependencies.futures-util]
version = "0.3"
features = [
    "std",
    "async-await-macro",
]
default-features = false

[dependencies.http]
version = "1"

[dependencies.md5]
version = "0.8"
optional = true

[dependencies.percent-encoding]
version = "2"

[dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sha1]
version = "0.11"
optional = true

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
optional = true

[dependencies.tokio-util]
version = "0.7"
features = ["io"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1"
features = [
    "v4",
    "js",
]