# 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.85.1"
name = "suppaftp"
version = "8.0.5"
authors = ["Christian Visintin <christian.visintin@veeso.dev>"]
build = false
include = [
    "examples/**/*",
    "src/**/*",
    "../../LICENSE-APACHE",
    "../../LICENSE-MIT",
    "../../README.md",
    "../../CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A super FTP/FTPS client library for Rust"
documentation = "https://docs.rs/suppaftp/"
readme = "README.md"
keywords = [
    "ftp",
    "ftps",
    "network-protocol",
    "async",
    "ftp-client",
]
categories = [
    "asynchronous",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/veeso/suppaftp"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "native-tls",
    "rustls-aws-lc-rs",
    "async-std",
    "tokio",
    "tokio-async-native-tls",
    "async-std-rustls-aws-lc-rs",
    "tokio-rustls-aws-lc-rs",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
async-secure = []
async-std = [
    "dep:async-std",
    "dep:async-trait",
    "dep:pin-project",
]
async-std-async-native-tls = [
    "async-std",
    "dep:async-native-tls-crate",
    "async-native-tls-crate/runtime-smol",
    "async-native-tls-crate/futures-util",
    "async-secure",
]
async-std-async-native-tls-vendored = [
    "async-std-async-native-tls",
    "async-native-tls-crate/vendored",
]
async-std-rustls-aws-lc-rs = [
    "dep:futures-rustls",
    "futures-rustls/aws-lc-rs",
    "dep:rustls-pki-types",
    "async-secure",
    "async-std",
]
async-std-rustls-ring = [
    "dep:futures-rustls",
    "futures-rustls/ring",
    "dep:rustls-pki-types",
    "async-secure",
    "async-std",
]
default = []
deprecated = []
native-tls = [
    "native-tls-crate",
    "secure",
]
native-tls-vendored = [
    "native-tls",
    "native-tls-crate/vendored",
]
no-log = ["log/max_level_off"]
rustls-aws-lc-rs = [
    "rustls-crate",
    "rustls-crate/aws-lc-rs",
    "secure",
]
rustls-ring = [
    "rustls-crate",
    "rustls-crate/ring",
    "secure",
]
secure = []
tokio = [
    "dep:tokio",
    "dep:async-trait",
    "dep:pin-project",
]
tokio-async-native-tls = [
    "tokio",
    "dep:async-native-tls-crate",
    "async-native-tls-crate/runtime-tokio",
    "async-secure",
]
tokio-async-native-tls-vendored = [
    "tokio-async-native-tls",
    "async-native-tls-crate/vendored",
]
tokio-rustls-aws-lc-rs = [
    "dep:tokio-rustls-crate",
    "dep:rustls-pki-types",
    "async-secure",
    "tokio",
    "tokio-rustls-crate/aws-lc-rs",
]
tokio-rustls-ring = [
    "dep:tokio-rustls-crate",
    "dep:rustls-pki-types",
    "async-secure",
    "tokio",
    "tokio-rustls-crate/ring",
]

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

[[example]]
name = "rustls"
path = "examples/rustls.rs"
required-features = ["rustls-aws-lc-rs"]

[dependencies.async-native-tls-crate]
version = "0.6"
optional = true
default-features = false
package = "async-native-tls"

[dependencies.async-std]
version = "1"
optional = true

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

[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

[dependencies.futures-lite]
version = "2"

[dependencies.futures-rustls]
version = "0.26"
features = [
    "tls12",
    "logging",
]
optional = true
default-features = false

[dependencies.lazy-regex]
version = "3"

[dependencies.log]
version = "0.4"

[dependencies.native-tls-crate]
version = "0.2"
optional = true
package = "native-tls"

[dependencies.pin-project]
version = "1"
optional = true

[dependencies.rustls-crate]
version = "0.23"
features = [
    "logging",
    "std",
    "tls12",
]
optional = true
default-features = false
package = "rustls"

[dependencies.rustls-pki-types]
version = "1"
features = ["alloc"]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "io-util",
    "net",
    "rt",
    "time",
]
optional = true

[dependencies.tokio-rustls-crate]
version = "0.26"
features = [
    "logging",
    "tls12",
]
optional = true
default-features = false
package = "tokio-rustls"

[dev-dependencies.async-attributes]
version = "1"

[dev-dependencies.env_logger]
version = "^0.11"

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

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

[dev-dependencies.testcontainers]
version = "0.27"
features = ["blocking"]

[dev-dependencies.webpki-roots]
version = "1"
