I think I've got the workspace thing figured out..how the Cargo.toml files should reference each other
This commit is contained in:
Generated
+3
-11
@@ -94,7 +94,7 @@ checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
|
||||
|
||||
[[package]]
|
||||
name = "client"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"common",
|
||||
@@ -108,7 +108,7 @@ checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
|
||||
|
||||
[[package]]
|
||||
name = "common"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
|
||||
[[package]]
|
||||
name = "heck"
|
||||
@@ -146,17 +146,9 @@ dependencies = [
|
||||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "saslauthd"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"common",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "server"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"common",
|
||||
|
||||
+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"
|
||||
+7
-3
@@ -1,8 +1,12 @@
|
||||
[package]
|
||||
name = "client"
|
||||
version = "0.2.0"
|
||||
edition = "2024"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
clap = { workspace = true }
|
||||
common = { workspace = true }
|
||||
common = { workspace = true }
|
||||
|
||||
[[bin]]
|
||||
name = "saslauthd_test_client"
|
||||
path = "src/main.rs"
|
||||
+2
-4
@@ -1,6 +1,4 @@
|
||||
[package]
|
||||
name = "common"
|
||||
version = "0.2.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
+7
-3
@@ -1,8 +1,12 @@
|
||||
[package]
|
||||
name = "server"
|
||||
version = "0.2.0"
|
||||
edition = "2024"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
clap = { workspace = true }
|
||||
common = { workspace = true }
|
||||
common = { workspace = true }
|
||||
|
||||
[[bin]]
|
||||
name = "saslauthd"
|
||||
path = "src/main.rs"
|
||||
@@ -42,7 +42,7 @@ mod tests {
|
||||
use common::request::Request;
|
||||
use std::io::Cursor;
|
||||
|
||||
const TEST_PATH: &str = "./test_passwords";
|
||||
const TEST_PATH: &str = "../test_passwords";
|
||||
|
||||
#[test]
|
||||
fn it_handles_a_request() {
|
||||
|
||||
@@ -43,7 +43,7 @@ mod tests {
|
||||
use crate::repository::PasswordDirectory;
|
||||
use common::request::Request;
|
||||
|
||||
const TEST_PATH: &str = "./test_passwords";
|
||||
const TEST_PATH: &str = "../test_passwords";
|
||||
|
||||
#[test]
|
||||
fn it_checks_good_password() {
|
||||
|
||||
Reference in New Issue
Block a user