Use relative cargo paths when using local copy

xmppftw created

Change summary

jid/Cargo.toml        | 3 ++-
parsers/Cargo.toml    | 5 +++--
tokio-xmpp/Cargo.toml | 7 ++++---
xmpp/Cargo.toml       | 3 ++-
4 files changed, 11 insertions(+), 7 deletions(-)

Detailed changes

jid/Cargo.toml 🔗

@@ -20,11 +20,12 @@ gitlab = { repository = "xmpp-rs/xmpp-rs" }
 
 [dependencies]
 memchr = "2.5"
-minidom = { version = "0.15", optional = true }
 serde = { version = "1.0", features = ["derive"], optional = true }
 stringprep = "0.1.3"
 quote = { version = "1.0", optional = true }
 proc-macro2 = { version = "1.0", optional = true }
+# same repository dependencies
+minidom = { version = "0.15", optional = true, path = "../minidom" }
 
 [dev-dependencies]
 serde_test = "1"

parsers/Cargo.toml 🔗

@@ -14,8 +14,6 @@ license = "MPL-2.0"
 edition = "2021"
 
 [dependencies]
-minidom = "0.15"
-jid = { version = "0.10", features = ["minidom"] }
 base64 = "0.21"
 digest = "0.10"
 sha1 = "0.10"
@@ -23,6 +21,9 @@ sha2 = "0.10"
 sha3 = "0.10"
 blake2 = "0.10.4"
 chrono = { version = "0.4.5", default-features = false, features = ["std"] }
+# same repository dependencies
+jid = { version = "0.10", features = ["minidom"], path = "../jid" }
+minidom = { version = "0.15", path = "../minidom" }
 
 [features]
 # Build xmpp-parsers to make components instead of clients.

tokio-xmpp/Cargo.toml 🔗

@@ -17,19 +17,20 @@ futures = "0.3"
 idna = "0.4"
 log = "0.4"
 native-tls = { version = "0.2", optional = true }
-sasl = "0.5"
 tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] }
 tokio-native-tls = { version = "0.3", optional = true }
 tokio-rustls = { version = "0.24", optional = true }
 tokio-stream = { version = "0.1", features = [] }
 tokio-util = { version = "0.7", features = ["codec"] }
 hickory-resolver = "0.24"
-xmpp-parsers = "0.20"
-minidom = "0.15"
 rxml = "0.9.1"
 webpki-roots = { version = "0.25", optional = true }
 rand = "^0.8"
 syntect = { version = "5", optional = true }
+# same repository dependencies
+minidom = { version = "0.15", path = "../minidom" }
+sasl = { version = "0.5", path = "../sasl" }
+xmpp-parsers = { version = "0.20", path = "../parsers" }
 
 [dev-dependencies]
 env_logger = { version = "0.10", default-features = false, features = ["auto-color", "humantime"] }

xmpp/Cargo.toml 🔗

@@ -14,12 +14,13 @@ license = "MPL-2.0"
 edition = "2021"
 
 [dependencies]
-tokio-xmpp = "3.4"
 futures = "0.3"
 tokio = { version = "1", features = ["fs"] }
 log = "0.4"
 reqwest = { version = "0.11.8", features = ["stream"] }
 tokio-util = { version = "0.7", features = ["codec"] }
+# same repository dependencies
+tokio-xmpp = { version = "3.4", path = "../tokio-xmpp" }
 
 [dev-dependencies]
 env_logger = { version = "0.10", default-features = false, features = ["auto-color", "humantime"] }