I think I've got the workspace thing figured out..how the Cargo.toml files should reference each other
This commit is contained in:
+5
-20
@@ -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"
|
||||
Reference in New Issue
Block a user