-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
85 lines (77 loc) · 2.53 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[package]
name = "spirit"
version = "0.4.21"
authors = ["Michal 'vorner' Vaner <[email protected]>"]
description = "Helper to create well behaved daemons with runtime-reconfiguration support"
documentation = "https://docs.rs/spirit"
repository = "https://github.com/vorner/spirit"
readme = "README.md"
categories = ["command-line-interface", "config"]
keywords = ["unix", "daemon", "service", "configuration", "spirit"]
license = "Apache-2.0 OR MIT"
edition = "2018"
include = [
"Cargo.toml",
"README.md",
"src/**",
]
[workspace]
members = [
"./",
"spirit-cfg-helpers",
"spirit-daemonize",
"spirit-dipstick",
"spirit-hyper",
"spirit-log",
"spirit-reqwest",
"spirit-tokio",
]
[badges]
travis-ci = { repository = "vorner/spirit" }
maintenance = { status = "passively-maintained" }
[features]
default = ["cfg-help", "json", "yaml", "suggestions", "color"]
ini = ["config/ini"]
json = ["config/json"]
hjson = ["config/hjson"]
yaml = ["config/yaml"]
cfg-help = ["structdoc"]
suggestions = ["structopt/suggestions"]
color = ["structopt/color"]
[dependencies]
arc-swap = "~1"
config = { version = "~0.11", default-features = false, features = ["toml"] }
either = "~1"
err-context = "~0.1"
fallible-iterator = "~0.2"
humantime = "~2"
libc = "~0.2"
log = "~0.4"
serde = { version = "~1", features = ["derive"] }
serde_ignored = { version = "~0.1.0" }
serde_path_to_error = "~0.1"
signal-hook = { version = "^0.3.3", features = ["extended-siginfo"] }
structdoc = { version = "~0.1.3", optional = true }
# Due to a hack, we are using part of API that doesn't have the proper API guarantees. So make sure cargo update doesn't break stuff.
# We should solve it eventually somehow. See the StructOptInternal.
structopt = { version = "~0.3.12", default-features = false }
toml = "~0.5"
[dev-dependencies]
hyper = "~0.14"
once_cell = "~1"
maplit = "~1"
spirit-cfg-helpers = { version = "~0.4", path = "spirit-cfg-helpers" }
spirit-daemonize = { version = "~0.5", path = "spirit-daemonize" }
spirit-hyper = { version = "~0.9", path = "spirit-hyper" }
spirit-log = { version = "~0.4", path = "spirit-log", features = ["background"] }
spirit-tokio = { version = "~0.9", path = "spirit-tokio", features = ["rt-from-cfg"] }
structdoc = "~0.1.3"
tokio = { version = "1", features = ["sync"] }
# Tests and building is faster with debug turned off and nobody really run a debugger on the
# produced binaries here ever. If it is needed, enable temporarily.
[profile.dev]
debug = false
[profile.test]
debug = false
[package.metadata.docs.rs]
all-features = true