1 |
[package] |
2 |
name = "salaryman" |
3 |
version = "0.0.1" |
4 |
edition = "2024" |
5 |
authors = ["Ren Kararou <[email protected]>"] |
6 |
description = "A very simple service management framework" |
7 |
readme = "README.md" |
8 |
license = "MIT" |
9 |
homepage = "https://sr.ht/~spicywolf/salaryman" |
10 |
repository = "https://svn.lesbianunix.dev/viewvc/salaryman/trunk/" |
11 |
categories = ["command-line-utilities"] |
12 |
keywords = ["service-management", "unix"] |
13 |
publish = ["crate-io"] |
14 |
|
15 |
[features] |
16 |
#default = [] |
17 |
default = ["protocol", "smd", "sm-cli"] |
18 |
protocol = [ |
19 |
"dep:bincode", |
20 |
] |
21 |
smd = [ |
22 |
"dep:clap", |
23 |
"dep:rayon", |
24 |
"dep:toml", |
25 |
"protocol", |
26 |
] |
27 |
sm-cli = [ |
28 |
"dep:clap", |
29 |
"dep:toml", |
30 |
"protocol", |
31 |
] |
32 |
|
33 |
[dependencies] |
34 |
bincode = { version = "2.0.1", features = ["serde"], optional = true } |
35 |
clap = { version = "4.5.39", features = ["derive"], optional = true } |
36 |
rayon = { version = "1.10.0", optional = true } |
37 |
serde = { version = "1.0.219", features = ["derive"] } |
38 |
toml = { version = "0.8.22", optional = true } |
39 |
uuid = { version = "1.17.0", features = ["v4", "serde"] } |
40 |
|
41 |
[[bin]] |
42 |
name = "smd" |
43 |
path = "src/server/main.rs" |
44 |
test = false |
45 |
bench = false |
46 |
required-features = ["smd"] |
47 |
|
48 |
[[bin]] |
49 |
name = "sm" |
50 |
path = "src/cli/main.rs" |
51 |
test = false |
52 |
bench = false |
53 |
required-features = ["sm-cli"] |
54 |
|
55 |
[profile.release] |
56 |
strip = true |
57 |
lto = true |
58 |
panic = "abort" |
59 |
codegen-units = 1 |
60 |
|