processmanager 0.6.0

manage process lifecycles, graceful shutdown and process faults
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"
name = "processmanager"
version = "0.6.0"
authors = ["Marc Riegel <mail@mrcrgl.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "manage process lifecycles, graceful shutdown and process faults"
readme = "README.md"
keywords = [
    "process",
    "graceful-shutdown",
    "signal",
    "runnable",
]
categories = ["rust-patterns"]
license = "MIT"
repository = "https://github.com/mrcrgl/processmanager-rs"

[features]
default = [
    "manager",
    "signal",
]
log = ["log-v0_4"]
log-v0_4 = ["dep:log"]
manager = []
signal = [
    "dep:signal-hook",
    "dep:signal-hook-tokio",
]
tracing = ["tracing-v0_1"]
tracing-v0_1 = ["dep:tracing"]

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

[[example]]
name = "axum"
path = "examples/axum.rs"

[[example]]
name = "dynamic_add"
path = "examples/dynamic_add.rs"

[[example]]
name = "restart_supervisor"
path = "examples/restart_supervisor.rs"

[[example]]
name = "runtime_context"
path = "examples/runtime_context.rs"

[[example]]
name = "simple"
path = "examples/simple.rs"

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

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

[dependencies.futures]
version = "0.3"

[dependencies.log]
version = "0.4"
optional = true

[dependencies.once_cell]
version = "1"

[dependencies.signal-hook]
version = "0.3"
optional = true

[dependencies.signal-hook-tokio]
version = "0.3"
features = ["futures-v0_3"]
optional = true

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

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

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