# 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.0"
name = "clamav-client"
version = "2.2.0"
authors = ["Thorsten Blum <thorsten.blum@toblux.com>"]
build = false
exclude = [
    "clamd",
    ".github",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ClamAV client library with optional support for async-std, smol, and Tokio"
homepage = "https://github.com/toblux/rust-clamav-client"
documentation = "https://docs.rs/clamav-client"
readme = "README.md"
keywords = [
    "clamav",
    "clamd",
    "anitvirus",
    "smol",
    "tokio",
]
license = "MIT"
repository = "https://github.com/toblux/rust-clamav-client"

[package.metadata.docs.rs]
features = [
    "tokio",
    "tokio-stream",
    "async-std",
    "smol",
]

[features]
async-std = [
    "dep:async-std",
    "dep:bytes",
]
smol = [
    "dep:smol",
    "dep:bytes",
]
tokio = ["dep:tokio"]
tokio-stream = [
    "tokio",
    "dep:tokio-stream",
    "dep:bytes",
]

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

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

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

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

[dependencies.smol]
version = "2.0.2"
optional = true

[dependencies.tokio]
version = "1.34.0"
features = [
    "fs",
    "io-util",
    "net",
]
optional = true
default-features = false

[dependencies.tokio-stream]
version = "0.1.14"
optional = true
default-features = false

[dev-dependencies.async-std]
version = "1.12.0"
features = ["attributes"]

[dev-dependencies.macro_rules_attribute]
version = "0.2.2"

[dev-dependencies.smol-macros]
version = "0.1.1"

[dev-dependencies.tokio]
version = "1.34.0"
features = [
    "io-std",
    "macros",
    "rt",
]

[dev-dependencies.tokio-util]
version = "0.7.10"
features = ["io"]
