Skip to content

Commit 38c2dc2

Browse files
authored
Use workspace dependencies. (#108)
* Use workspace dependencies. * just fix
1 parent 442fb50 commit 38c2dc2

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ members = [
88
"web-transport-ws",
99
]
1010
resolver = "2"
11+
12+
[workspace.dependencies]
13+
web-transport-proto = { path = "web-transport-proto", version = "0.2" }
14+
web-transport-trait = { path = "web-transport-trait", version = "0.1" }

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ test:
5252

5353
# Automatically fix some issues.
5454
fix:
55-
cargo fix --allow-staged --workspace --exclude web-transport-wasm --all-targets --all-features
56-
cargo clippy --fix --allow-staged --workspace --exclude web-transport-wasm --all-targets --all-features
55+
cargo fix --allow-staged --allow-dirty --workspace --exclude web-transport-wasm --all-targets --all-features
56+
cargo clippy --fix --allow-staged --allow-dirty --workspace --exclude web-transport-wasm --all-targets --all-features
5757

5858
# Do the same but explicitly use the WASM target.
59-
cargo fix --allow-staged --target wasm32-unknown-unknown -p web-transport --all-targets --all-features
60-
cargo fix --allow-staged --target wasm32-unknown-unknown -p web-transport-wasm --all-targets --all-features
61-
cargo clippy --fix --allow-staged --target wasm32-unknown-unknown -p web-transport --all-targets --all-features
62-
cargo clippy --fix --allow-staged --target wasm32-unknown-unknown -p web-transport-wasm --all-targets --all-features
59+
cargo fix --allow-staged --allow-dirty --target wasm32-unknown-unknown -p web-transport --all-targets --all-features
60+
cargo fix --allow-staged --allow-dirty --target wasm32-unknown-unknown -p web-transport-wasm --all-targets --all-features
61+
cargo clippy --fix --allow-staged --allow-dirty --target wasm32-unknown-unknown -p web-transport --all-targets --all-features
62+
cargo clippy --fix --allow-staged --allow-dirty --target wasm32-unknown-unknown -p web-transport-wasm --all-targets --all-features
6363

6464
# requires: cargo install cargo-shear
6565
cargo shear --fix

web-transport-quinn/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ tokio = { version = "1", default-features = false, features = [
4343
"macros",
4444
] }
4545
url = "2"
46-
web-transport-proto = { path = "../web-transport-proto", version = "0.2" }
47-
web-transport-trait = { path = "../web-transport-trait", version = "0.1" }
46+
web-transport-proto = { workspace = true }
47+
web-transport-trait = { workspace = true }
4848

4949
[dev-dependencies]
5050
anyhow = "1"

web-transport-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ url = "2"
2424
wasm-bindgen = "0.2"
2525
wasm-bindgen-futures = "0.4"
2626
web-streams = "0.1.2"
27-
web-transport-trait = { path = "../web-transport-trait" }
27+
web-transport-trait = { workspace = true }
2828

2929
[dependencies.web-sys]
3030
version = "0.3.76"

web-transport-ws/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ futures = "0.3"
1717
thiserror = "2"
1818
tokio = { version = "1", features = ["sync", "time", "macros", "rt"] }
1919
tokio-tungstenite = "0.24"
20-
web-transport-proto = { path = "../web-transport-proto", version = "0.2" }
21-
web-transport-trait = { path = "../web-transport-trait", version = "0.1" }
20+
web-transport-proto = { workspace = true }
21+
web-transport-trait = { workspace = true }
2222

2323
[dev-dependencies]
2424
anyhow = "1"

0 commit comments

Comments
 (0)