# 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"
name = "kathputli"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimal typed-mailbox actor framework over Tokio — actors respond to messages like puppets to strings"
readme = "README.md"
keywords = [
    "actor",
    "tokio",
    "mailbox",
    "concurrency",
    "async",
]
categories = [
    "asynchronous",
    "concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/manchhq/kathputli"

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

[features]
serde = ["dep:serde"]
system = ["dep:futures-util"]
tracing = ["dep:tracing"]

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

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

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.tokio]
version = "1.35"
features = [
    "sync",
    "rt",
    "macros",
]

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

[dependencies.tracing]
version = "0.1"
optional = true

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

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

[dev-dependencies.tokio]
version = "1.35"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]
