# 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 = "2021" rust-version = "1.70" name = "qsu" version = "0.7.0" build = false exclude = [ ".fossil-settings", ".efiles", ".fslckout", "www", "bacon.toml", "build_docs.sh", "Rocket.toml", "rustfmt.toml", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Service subsystem utilities and runtime wrapper." readme = "README.md" keywords = [ "service", "systemd", "winsvc", ] categories = ["os"] license = "0BSD" repository = "https://repos.qrnch.tech/pub/qsu" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", "--generate-link-to-definition", ] [lib] name = "qsu" path = "src/lib.rs" [[example]] name = "hellosvc" path = "examples/hellosvc.rs" required-features = [ "clap", "installer", "rt", ] [[example]] name = "hellosvc-rocket" path = "examples/hellosvc-rocket.rs" required-features = [ "clap", "installer", "rt", "rocket", ] [[example]] name = "hellosvc-tokio" path = "examples/hellosvc-tokio.rs" required-features = [ "clap", "installer", "rt", "tokio", ] [[example]] name = "simplerocket" path = "examples/simplerocket.rs" [[example]] name = "simplesync" path = "examples/simplesync.rs" [[example]] name = "simpletokio" path = "examples/simpletokio.rs" [[test]] name = "apperr" path = "tests/apperr.rs" [[test]] name = "initrunshutdown" path = "tests/initrunshutdown.rs" [dependencies.async-trait] version = "0.1.83" [dependencies.chrono] version = "0.4.38" [dependencies.clap] version = "4.5.20" features = [ "derive", "env", "string", "wrap_help", ] optional = true [dependencies.env_logger] version = "0.11.5" [dependencies.futures] version = "0.3.31" [dependencies.itertools] version = "0.13.0" optional = true [dependencies.killswitch] version = "0.4.2" [dependencies.log] version = "0.4.22" [dependencies.parking_lot] version = "0.12.3" [dependencies.rocket] version = "0.5.1" optional = true [dependencies.sidoc] version = "0.1.0" optional = true [dependencies.time] version = "0.3.36" features = ["macros"] [dependencies.tokio] version = "1.40.0" features = ["sync"] [dependencies.tracing] version = "0.1.40" [dependencies.tracing-subscriber] version = "0.3.18" features = [ "env-filter", "time", "fmt", "ansi", ] default-features = false [dev-dependencies.clap] version = "4.5.20" features = [ "derive", "env", "wrap_help", ] [dev-dependencies.tokio] version = "1.40.0" features = ["time"] [features] clap = [ "dep:clap", "dep:itertools", ] default = ["rt"] full = [ "clap", "installer", "rocket", "rt", "systemd", "tokio", ] installer = ["dep:sidoc"] rocket = [ "rt", "dep:rocket", "tokio", ] rt = [] systemd = ["dep:sd-notify"] tokio = [ "rt", "tokio/macros", "tokio/rt-multi-thread", "tokio/signal", ] wait-for-debugger = ["dep:dbgtools-win"] [target.'cfg(target_os = "linux")'.dependencies.sd-notify] version = "0.4.3" optional = true [target."cfg(unix)".dependencies.libc] version = "0.2.160" [target."cfg(unix)".dependencies.nix] version = "0.29.0" features = [ "pthread", "signal", "time", ] [target."cfg(windows)".dependencies.dbgtools-win] version = "0.2.1" optional = true [target."cfg(windows)".dependencies.eventlog] version = "0.2.2" [target."cfg(windows)".dependencies.registry] version = "1.2.3" [target."cfg(windows)".dependencies.scopeguard] version = "1.2.0" [target."cfg(windows)".dependencies.windows-service] version = "0.7.0" [target."cfg(windows)".dependencies.windows-sys] version = "0.59.0" features = [ "Win32_Foundation", "Win32_System_Console", ] [target."cfg(windows)".dependencies.winreg] version = "0.52.0" [badges.maintenance] status = "experimental" [lints.clippy] multiple_crate_versions = "allow" [lints.clippy.all] level = "deny" priority = -1 [lints.clippy.cargo] level = "warn" priority = -1 [lints.clippy.nursery] level = "warn" priority = -1 [lints.clippy.pedantic] level = "warn" priority = -1