[package]
edition = "2024"
rust-version = "1.85"
name = "actor-lite"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "基于 tokio 的轻量 actor 抽象:一份核(命令通道 + 状态/进度 + 事件 + 取消)+ 异步壳(tokio::spawn)与线程壳(独占线程,可装 !Send 资源)"
readme = "README.md"
keywords = [
"actor",
"tokio",
"thread",
"channel",
"concurrency",
]
categories = [
"concurrency",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/KOPZWMZ/actor-lite.git"
[features]
async = [
"tokio/rt",
"tokio/time",
"tokio/macros",
]
default = [
"async",
"manager",
]
manager = ["async"]
[lib]
name = "actor_lite"
path = "src/lib.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "is_alive_semantics"
path = "tests/is_alive_semantics.rs"
[[test]]
name = "thread_actor"
path = "tests/thread_actor.rs"
[dependencies.tokio]
version = "1.53.1"
features = ["sync"]
default-features = false
[dependencies.tracing]
version = "0.1"
[dev-dependencies.tokio]
version = "1.53.1"
features = [
"macros",
"rt-multi-thread",
"time",
"sync",
]