agplatform 0.4.1

Platform providing env, fs, request and process infrastructure for production and testing
# 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"
name = "agplatform"
version = "0.4.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Platform providing env, fs, request and process infrastructure for production and testing"
homepage = "https://github.com/agnesoft/agnesoft"
documentation = "https://github.com/agnesoft/agnesoft"
readme = "README.md"
keywords = [
    "build",
    "test",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/agnesoft/agnesoft"
resolver = "2"

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

[features]
default = []
env = []
fs = ["env"]
native-tls = [
    "request",
    "reqwest/native-tls",
]
process = [
    "env",
    "tokio?/io-util",
    "tokio?/process",
]
request = [
    "env",
    "dep:http-body-util",
    "dep:reqwest",
    "reqwest/blocking",
]
testing = ["tokio?/sync"]
tls = [
    "request",
    "reqwest/rustls",
]
tokio = [
    "dep:tokio",
    "tokio/time",
]

[lib]
name = "agplatform"
path = "src/lib.rs"
bench = false

[[example]]
name = "async_mirror"
path = "examples/async_mirror.rs"
test = true
required-features = [
    "fs",
    "process",
    "request",
    "tokio",
]

[[example]]
name = "download"
path = "examples/download.rs"
test = true
required-features = [
    "fs",
    "request",
]

[[example]]
name = "env"
path = "examples/env.rs"
test = true
required-features = ["env"]

[[example]]
name = "fs"
path = "examples/fs.rs"
test = true
required-features = ["fs"]

[[example]]
name = "process"
path = "examples/process.rs"
test = true
required-features = ["process"]

[[example]]
name = "process_async"
path = "examples/process_async.rs"
test = true
required-features = [
    "process",
    "tokio",
]

[[example]]
name = "request"
path = "examples/request.rs"
test = true
required-features = ["request"]

[[example]]
name = "request_async"
path = "examples/request_async.rs"
test = true
required-features = [
    "request",
    "tokio",
]

[[example]]
name = "threads"
path = "examples/threads.rs"
test = true
required-features = [
    "fs",
    "process",
]

[[test]]
name = "platform_test"
path = "tests/platform_test.rs"
required-features = [
    "fs",
    "process",
    "request",
]

[[bench]]
name = "env"
path = "benches/env.rs"
harness = false
required-features = ["env"]

[[bench]]
name = "fs"
path = "benches/fs.rs"
harness = false
required-features = ["fs"]

[[bench]]
name = "process"
path = "benches/process.rs"
harness = false
required-features = [
    "process",
    "tokio",
]

[[bench]]
name = "request"
path = "benches/request.rs"
harness = false
required-features = [
    "request",
    "tokio",
]

[dependencies.http-body-util]
version = "0.1"
optional = true

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

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

[dev-dependencies.agbench]
version = "0.4.1"

[dev-dependencies.http-body]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = ["rt"]
default-features = false