[package]
edition = "2024"
rust-version = "1.85"
name = "timerwheel"
version = "0.1.0"
build = false
include = [
"/CHANGELOG.md",
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/examples/**",
"/src/**",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hierarchical timer wheel for delayed task scheduling with pluggable executors."
homepage = "https://github.com/photowey/timerwheel"
documentation = "https://docs.rs/timerwheel"
readme = "README.md"
keywords = [
"timer",
"scheduler",
"time-wheel",
"timing-wheel",
"tokio",
]
categories = [
"asynchronous",
"concurrency",
"date-and-time",
]
license = "Apache-2.0"
repository = "https://github.com/photowey/timerwheel"
[features]
default = []
tokio = ["dep:tokio"]
[lib]
name = "timerwheel"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "cancel"
path = "examples/cancel.rs"
[[example]]
name = "executor"
path = "examples/executor.rs"
[[example]]
name = "metrics"
path = "examples/metrics.rs"
[[example]]
name = "tokio"
path = "examples/tokio.rs"
[[test]]
name = "builder_api"
path = "tests/builder_api.rs"
[[test]]
name = "executor_api"
path = "tests/executor_api.rs"
[[test]]
name = "prelude_api"
path = "tests/prelude_api.rs"
[[test]]
name = "timer_api"
path = "tests/timer_api.rs"
[[test]]
name = "tokio_api"
path = "tests/tokio_api.rs"
[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"time",
"sync",
"macros",
]