acktor 1.0.13

Pure-Rust actor framework built on top of the Tokio async runtime
Documentation
[package]
name = "acktor"
version = "1.0.13"
description = "Pure-Rust actor framework built on top of the Tokio async runtime"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
categories.workspace = true
readme = "../README.md"
keywords.workspace = true
exclude = ["examples/*", "tests/*"]

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

[features]
default = ["derive", "observer", "cron"]
derive = ["dep:acktor-derive"]
observer = ["dep:ahash"]
cron = []
# a stable unique identifier for types
identifier = ["dep:sha2-const"]
# opt-in hook to bridge an actor's address into a type-erased trait object which can be downcast
# into a concrete recipient type of a specific message type
type-erased-recipient-hook = []
# this feature requires `tokio_unstable` flag
tokio-tracing = ["tokio/tracing"]
# emits debug-level tracing logs when an observer's mailbox is full during notification
bottleneck-warning = []
# marker feature enabled by `acktor-ipc`
ipc = ["identifier", "type-erased-recipient-hook"]

[dependencies]
disqualified.workspace = true
futures-util.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["macros", "rt", "sync", "time"] }
tracing.workspace = true

ahash = { workspace = true, optional = true }
sha2-const = { workspace = true, optional = true }

acktor-derive = { workspace = true, optional = true }

[dev-dependencies]
anyhow.workspace = true
clap.workspace = true
pretty_assertions.workspace = true

[[example]]
name = "ring"
required-features = ["derive"]

[[test]]
name = "test_basic"
required-features = ["derive"]

[[test]]
name = "test_observer"
required-features = ["observer"]

[[test]]
name = "test_cron"
required-features = ["cron"]

[[test]]
name = "test_cron_context"
required-features = ["cron"]

[[test]]
name = "test_identifier"
required-features = ["derive", "identifier"]