tus-uploader 0.1.0

Async TUS client for resumable uploads
# 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-uploader"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async TUS client for resumable uploads"
homepage = "https://github.com/sagikazarmark/tus-rs"
readme = "README.md"
keywords = [
    "tus",
    "upload",
    "resumable",
    "http",
    "client",
]
categories = [
    "web-programming::http-client",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sagikazarmark/tus-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
checksum = ["tus-protocol/checksum"]
default = [
    "checksum",
    "transport-reqwest",
    "reqwest?/default",
]
reqwest-native-tls = ["reqwest?/native-tls"]
reqwest-rustls = ["reqwest?/rustls"]
source-file = [
    "tokio/fs",
    "tokio/io-util",
]
transport-reqwest = [
    "dep:bytes",
    "dep:http-body-util",
    "dep:reqwest",
]
transport-reqwest-middleware = [
    "transport-reqwest",
    "dep:reqwest-middleware",
]

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

[[example]]
name = "upload_file"
path = "examples/upload_file.rs"
required-features = [
    "source-file",
    "transport-reqwest",
]

[[example]]
name = "wasm_upload_api"
path = "examples/wasm_upload_api.rs"

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

[dependencies.base64]
version = "0.22"

[dependencies.http]
version = "1"

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

[dependencies.reqwest-middleware]
version = "0.5"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tus-protocol]
version = "0.1.0"

[dependencies.url]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bytes]
version = "1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.fastrand]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.http-body-util]
version = "0.1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
    "rt",
    "time",
]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.axum]
version = "0.8"
features = [
    "http1",
    "tokio",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tus-axum]
version = "0.1.0"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tus-protocol]
version = "0.1.0"
features = [
    "lock-memory",
    "state-memory",
    "storage-memory",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-timers]
version = "0.4"
features = ["futures"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"