Skip to content

Commit 38e1590

Browse files
committed
docs(examples): put socketioxide as workspace dep
1 parent d9c6759 commit 38e1590

File tree

14 files changed

+15
-19
lines changed

14 files changed

+15
-19
lines changed

examples/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
1414
axum = "0.7.5"
1515
hyper-util.version = "0.1.1"
1616
hyper = { version = "1.0.1", features = ["http1", "server"] }
17+
socketioxide = { path = "../crates/socketioxide" }
18+
socketioxide-redis = { path = "../crates/socketioxide-redis" }

examples/angular-todomvc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55

66

77
[dependencies]
8-
socketioxide = { path = "../../crates/socketioxide", features = ["state"] }
8+
socketioxide = { workspace = true, features = ["state"] }
99
axum.workspace = true
1010
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1111
tower-http = { version = "0.5.0", features = ["cors", "fs"] }

examples/axum-echo-tls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
socketioxide = { path = "../../crates/socketioxide" }
7+
socketioxide.workspace = true
88
axum.workspace = true
99
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1010
tracing-subscriber.workspace = true

examples/axum-echo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
socketioxide = { path = "../../crates/socketioxide" }
7+
socketioxide.workspace = true
88
axum.workspace = true
99
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1010
tracing-subscriber.workspace = true

examples/background-task/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
socketioxide = { path = "../../crates/socketioxide" }
9+
socketioxide.workspace = true
1010
axum.workspace = true
1111
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1212
tower.workspace = true

examples/basic-crud-application/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55

66

77
[dependencies]
8-
socketioxide = { path = "../../crates/socketioxide", features = ["state"] }
8+
socketioxide = { workspace = true, features = ["state"] }
99
uuid = { version = "1.6.1", features = ["v4", "serde"] }
1010
axum.workspace = true
1111
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }

examples/chat/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
socketioxide = { path = "../../crates/socketioxide", features = [
10-
"extensions",
11-
"state",
12-
] }
9+
socketioxide = { workspace = true, features = ["extensions", "state"] }
1310
axum.workspace = true
1411
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1512
tower-http = { version = "0.5.0", features = ["cors", "fs"] }

examples/hyper-echo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
socketioxide = { path = "../../crates/socketioxide", features = ["tracing"] }
9+
socketioxide = { workspace = true, features = ["tracing"] }
1010
hyper = { workspace = true, features = ["server", "http1"] }
1111
hyper-util = { workspace = true, features = ["tokio"] }
1212
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }

examples/private-messaging/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55

66

77
[dependencies]
8-
socketioxide = { path = "../../crates/socketioxide", features = [
8+
socketioxide = { workspace = true, features = [
99
"extensions",
1010
"state",
1111
"tracing",

examples/react-rooms-chat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
socketioxide = { path = "../../crates/socketioxide", features = ["state"] }
9+
socketioxide = { workspace = true, features = ["state"] }
1010
tokio = { version = "1", features = ["full"] }
1111
tracing = "0.1"
1212
tracing-subscriber = "0.3"

0 commit comments

Comments
 (0)