# 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.94"
name = "s3"
version = "0.1.27"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "CHANGELOG.md",
    "src/**",
    "benches/**",
    "examples/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lean, modern, unofficial S3-compatible client for Rust."
homepage = "https://github.com/lvillis/s3-rs"
documentation = "https://docs.rs/s3"
readme = "README.md"
keywords = [
    "s3",
    "object-storage",
    "aws",
    "minio",
    "sigv4",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/lvillis/s3-rs"

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

[package.metadata.release]
tag-prefix = ""
tag-name = "{{prefix}}{{version}}"
pre-release-commit-message = "chore: release {{crate_name}} version {{version}}"
tag-message = "chore: release {{crate_name}} version {{version}}"
pre-release-hook = [
    "git",
    "cliff",
    "-o",
    "CHANGELOG.md",
    "--tag",
    "{{version}}",
]

[features]
allow-both-tls = []
async = [
    "dep:reqx",
    "dep:futures-core",
    "dep:futures-io",
    "dep:futures-util",
    "dep:tokio",
    "dep:http-body-util",
]
blocking = ["dep:reqx"]
checksums = [
    "dep:crc",
    "dep:sha1",
]
credentials-imds = ["dep:serde_json"]
credentials-profile = []
credentials-sts = []
default = [
    "async",
    "rustls",
]
metrics = ["dep:metrics"]
multipart = []
native-tls = [
    "reqx?/async-tls-native",
    "reqx?/blocking-tls-native",
]
providers = []
rustls = [
    "reqx?/async-tls-rustls-ring",
    "reqx?/blocking-tls-rustls-ring",
]
tracing = ["dep:tracing"]
unstable-raw = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false

[dependencies.base64]
version = "0.22.1"
features = ["std"]
default-features = false

[dependencies.bytes]
version = "1.11.1"
features = ["std"]
default-features = false

[dependencies.crc]
version = "3.4.0"
optional = true
default-features = false

[dependencies.futures-core]
version = "0.3.32"
features = ["std"]
optional = true
default-features = false

[dependencies.futures-io]
version = "0.3.32"
features = ["std"]
optional = true
default-features = false

[dependencies.futures-util]
version = "0.3.32"
features = [
    "std",
    "io",
]
optional = true
default-features = false

[dependencies.graviola]
version = "0.3.4"
default-features = false

[dependencies.hex]
version = "0.4.3"
features = ["std"]
default-features = false

[dependencies.http]
version = "1.4.0"
features = ["std"]
default-features = false

[dependencies.http-body-util]
version = "0.1.3"
optional = true
default-features = false

[dependencies.httpdate]
version = "1.0.3"
default-features = false

[dependencies.md-5]
version = "0.11.0"
default-features = false

[dependencies.metrics]
version = "0.24.3"
optional = true
default-features = false

[dependencies.quick-xml]
version = "0.39.2"
features = ["serialize"]
default-features = false

[dependencies.reqx]
version = "0.1.34"
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "std",
]
default-features = false

[dependencies.serde_json]
version = "1.0.149"
features = ["std"]
optional = true
default-features = false

[dependencies.sha1]
version = "0.11.0"
optional = true
default-features = false

[dependencies.time]
version = "0.3.47"
features = [
    "std",
    "parsing",
]
default-features = false

[dependencies.tokio]
version = "1.51.1"
features = [
    "time",
    "sync",
    "io-util",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
optional = true
default-features = false

[dependencies.url]
version = "2.5.8"
features = ["std"]
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.reqwest]
version = "0.13.2"
features = ["stream"]
default-features = false

[dev-dependencies.tokio]
version = "1.51.1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "io-util",
]
default-features = false

[dev-dependencies.ureq]
version = "3.3.0"
default-features = false
