about summary refs log tree commit diff stats
path: root/Cargo.toml
blob: 807c5005e09cfe6e41916528e3ef290bff311515 (plain) (blame)
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
[package]
name = "salaryman"
version = "0.0.1"
edition = "2024"
authors = ["Ren Kararou <[email protected]>"]
description = "A very simple service management framework"
readme = "README.md"
license = "MIT"
homepage = "https://sr.ht/~spicywolf/salaryman"
repository = "https://svn.lesbianunix.dev/viewvc/salaryman/trunk/"
categories = ["command-line-utilities"]
keywords = ["service-management", "unix"]
publish = ["crate-io"]

[features]
#default = []
default = ["protocol", "smd", "sm-cli"]
protocol = [
	"dep:bincode",
]
smd = [
	"dep:clap",
	"dep:rayon",
	"dep:toml",
	"protocol",
]
sm-cli = [
	"dep:clap",
	"dep:toml",
	"protocol",
]

[dependencies]
bincode = { version = "2.0.1", features = ["serde"], optional = true }
clap = { version = "4.5.39", features = ["derive"], optional = true }
rayon = { version = "1.10.0", optional = true }
serde = { version = "1.0.219", features = ["derive"] }
toml = { version = "0.8.22", optional = true }
uuid = { version = "1.17.0", features = ["v4", "serde"] }

[[bin]]
name = "smd"
path = "src/server/main.rs"
test = false
bench = false
required-features = ["smd"]

[[bin]]
name = "sm"
path = "src/cli/main.rs"
test = false
bench = false
required-features = ["sm-cli"]

[profile.release]
strip = true
lto = true
panic = "abort"
codegen-units = 1