modrun 1.0.0

Modular application composer for Tokio: domain modules, typed wiring, lifecycle
Documentation
# 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 = "modrun"
version = "1.0.0"
authors = ["shmy <chao.w1226@gmail.com>"]
build = false
exclude = [
    ".github",
    "justfile",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Modular application composer for Tokio: domain modules, typed wiring, lifecycle"
homepage = "https://github.com/shmy/modrun"
documentation = "https://docs.rs/modrun"
readme = "README.md"
keywords = [
    "modular",
    "lifecycle",
    "tokio",
    "async",
    "wiring",
]
categories = [
    "asynchronous",
    "development-tools",
    "rust-patterns",
]
license = "MIT"
repository = "https://github.com/shmy/modrun"

[package.metadata.docs.rs]
all-features = true

[features]
default = [
    "signal",
    "logging",
]
logging = ["dep:tracing-subscriber"]
signal = ["tokio/signal"]

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

[[example]]
name = "axum"
path = "examples/axum.rs"
required-features = ["logging"]

[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = ["logging"]

[[example]]
name = "handlers"
path = "examples/handlers.rs"
required-features = ["logging"]

[[example]]
name = "swap"
path = "examples/swap.rs"
required-features = ["logging"]

[[example]]
name = "worker"
path = "examples/worker.rs"
required-features = ["logging"]

[[example]]
name = "wrap"
path = "examples/wrap.rs"
required-features = ["logging"]

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

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

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

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

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

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

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

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

[[bench]]
name = "build"
path = "benches/build.rs"
harness = false

[dependencies.thiserror]
version = "2"
features = ["std"]
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "time",
    "macros",
    "sync",
]
default-features = false

[dependencies.tracing]
version = "0.1"
features = ["std"]
default-features = false

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "std",
]
optional = true
default-features = false

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "ansi",
    "fmt",
    "std",
]
default-features = false

[lints.clippy]
dbg_macro = "warn"
todo = "warn"

[lints.rust]
missing_docs = "warn"