I think I've got the workspace thing figured out..how the Cargo.toml files should reference each other

This commit is contained in:
Barry Pederson
2025-02-21 15:11:31 -08:00
parent e5f2bbf64e
commit 3fac9def78
7 changed files with 26 additions and 43 deletions
+5 -20
View File
@@ -1,29 +1,14 @@
[package]
name = "saslauthd"
version = "0.2.0"
edition = "2024"
[workspace]
resolver = "3"
members = [
"common",
"server",
"client",
]
[workspace.package]
version = "0.3.0"
edition = "2024"
[workspace.dependencies]
clap = { version = "4.5.20", features = ["derive"] }
common = { path = "common" }
# Why do I need a [dependencies] that duplicates the [workspace.dependencies]?
# without this it doesn't work.
[dependencies]
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"