# 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.95"
name = "altair-concurrent"
version = "0.2.0"
authors = ["Jasoet <jasoet87@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe parallel execution of named async tasks with cancellation and per-task tracing"
homepage = "https://github.com/jasoet/altair-rs"
readme = "README.md"
keywords = [
    "async",
    "concurrent",
    "tokio",
    "tracing",
]
categories = [
    "asynchronous",
    "concurrency",
]
license = "MIT"
repository = "https://github.com/jasoet/altair-rs"

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

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

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

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

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

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

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

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

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

[dependencies.futures]
version = "0.3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "sync",
    "signal",
]

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.assert_matches]
version = "1.5"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "sync",
    "signal",
    "test-util",
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
    "fmt",
    "tracing-log",
]

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
