about summary refs log tree commit diff stats
path: root/Cargo.toml
diff options
context:
space:
mode:
authoryuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef>2025-07-09 05:14:23 +0000
committeryuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef>2025-07-09 05:14:23 +0000
commitdb05108dfaa14044c187d45fc6c9fc479d82b6d0 (patch)
tree2ccad58bbc121f532d30da5df742daef45b34cc5 /Cargo.toml
parentb951ba96d7d985941af8f6e5d413bf8b3d65cf44 (diff)
downloadsalaryman-db05108dfaa14044c187d45fc6c9fc479d82b6d0.tar.gz
salaryman-db05108dfaa14044c187d45fc6c9fc479d82b6d0.tar.bz2
salaryman-db05108dfaa14044c187d45fc6c9fc479d82b6d0.zip
reorganize
git-svn-id: svn+ssh://diminuette.aengel.lesbianunix.dev/salaryman/trunk@11 b9215c17-b818-4693-b096-d1e41a411fef
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml18
1 files changed, 15 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7518b99..703d37f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,14 +5,26 @@ edition = "2024"
 authors = ["Ren Kararou <[email protected]>"]
 description = "A very simple service management framework"
 
+[features]
+default = ["smd"]
+smd = ["dep:clap", "dep:toml"]
+
 [dependencies]
-clap = { version = "4.5.39", features = ["derive"] }
+clap = { version = "4.5.39", features = ["derive"], optional = true }
 serde = { version = "1.0.219", features = ["derive"] }
 tokio = { version = "1.45.1", features = ["full"] }
-toml = "0.8.22"
+toml = { version = "0.8.22", optional = true }
 
 [[bin]]
 name = "smd"
-path = "src/bin/smd.rs"
+path = "src/smd/main.rs"
 test = false
 bench = false
+required-features = ["smd"]
+
+[profile.release]
+strip = true
+lto = "thin"
+panic = "abort"
+codegen-units = 1
+