Add a separate client binary, with some common code to the server.

The cargo workspace thing was a PITA to figure out, but it seems to be working.  Could maybe be simplified?
This commit is contained in:
Barry Pederson
2024-11-02 15:58:35 -07:00
parent 46ad77f19e
commit 076e48f457
16 changed files with 380 additions and 255 deletions
+19 -2
View File
@@ -3,7 +3,24 @@ name = "saslauthd"
version = "0.2.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [
"common",
"server",
"client",
]
#[workspace.dependencies]
#clap = { version = "4.5.20", features = ["derive"] }
[dependencies]
structopt = "^0.3.26"
clap = { version = "4.5.20", features = ["derive"] }
common = { path = "common" }
[[bin]]
name = "saslauthd"
path = "server/src/main.rs"
[[bin]]
name = "saslauthd_test_client"
path = "client/src/main.rs"