Skip to content

Commit 1ace32c

Browse files
committed
chore: upgrade examples to Rust 2024
`cargo fix --edition` did all the work except for changing the spelling of "crate_type" to "crate-type".
1 parent dcfbecb commit 1ace32c

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

browser-chat/browser-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "chat-browser"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[lib]
77
crate-type = ["cdylib", "rlib"]

browser-chat/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "chat-cli"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
anyhow = "1.0.95"

browser-chat/shared/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "chat-shared"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
anyhow = "1"

browser-echo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "browser-echo"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
default-run = "cli"
66

77
[lib]

browser-echo/src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl EchoNode {
4646
&self,
4747
node_id: NodeId,
4848
payload: String,
49-
) -> impl Stream<Item = ConnectEvent> + Unpin {
49+
) -> impl Stream<Item = ConnectEvent> + Unpin + use<> {
5050
let (event_sender, event_receiver) = async_channel::bounded(16);
5151
let endpoint = self.router.endpoint().clone();
5252
task::spawn(async move {

dumbpipe-web/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "reverse-proxy"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
license = "Apache-2.0/MIT"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

extism/host/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "extism-host"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
anyhow = "1.0.79"
88
extism = "1.0.0"
99
tokio = { version = "1", features = ["full"] }
10-
iroh-extism-host-functions = { path = "../iroh-extism-host-functions" }
10+
iroh-extism-host-functions = { path = "../iroh-extism-host-functions" }

extism/iroh-extism-host-functions/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "iroh-extism-host-functions"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
anyhow = "1.0.79"

extism/plugin/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "plugin"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[lib]
7-
crate_type = ["cdylib"]
7+
crate-type = ["cdylib"]
88

99
[dependencies]
1010
extism-pdk = "1.0.1"

frosty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "frosty"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
anyhow = "1.0.89"

0 commit comments

Comments
 (0)