Skip to content

Commit

Permalink
upgrade to Rust 2024 Edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsheldon committed Feb 25, 2025
1 parent 4875e14 commit 596cd5d
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
resolver = "2"
resolver = "3"
members = [
"guest-adder-rs",
"guest-interfaced-adder-rs",
Expand Down
4 changes: 2 additions & 2 deletions guest-adder-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "guest-adder-rs"
version = "0.1.0"
edition = "2021"
version = "0.1.1"
edition = "2024"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions guest-interfaced-adder-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "guest-interfaced-adder-rs"
version = "0.1.0"
edition = "2021"
version = "0.1.1"
edition = "2024"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions guest-kv-store-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "guest-kv-store-rs"
version = "0.1.0"
edition = "2021"
version = "0.1.1"
edition = "2024"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions host-command-component/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[package]
name = "host-command-component"
version = "0.1.0"
edition = "2021"
version = "0.1.1"
edition = "2024"

[dependencies]
wit-bindgen-rt = { version = "0.36.0", features = ["bitflags"] }
Expand Down
4 changes: 2 additions & 2 deletions host-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "host-rs"
version = "0.1.2"
edition = "2021"
version = "0.1.3"
edition = "2024"

[dependencies]
anyhow = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions host-rs/src/kv_store/rs_guest/async_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
use futures::executor::block_on;

use crate::utils::get_component_linker_store;
use crate::utils::{bind_interfaces_needed_by_guest_rust_std, ComponentRunStates};
use crate::utils::{ComponentRunStates, bind_interfaces_needed_by_guest_rust_std};
use std::collections::HashMap;
use wasmtime::component::bindgen;
use wasmtime::component::Resource;
use wasmtime::component::bindgen;
use wasmtime::{Engine, Result};

bindgen!({
Expand Down
4 changes: 2 additions & 2 deletions host-rs/src/kv_store/rs_guest/sync_version.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Reference: https://docs.rs/wasmtime/latest/wasmtime/component/bindgen_examples/_4_imported_resources/index.html

use crate::utils::get_component_linker_store;
use crate::utils::{bind_interfaces_needed_by_guest_rust_std, ComponentRunStates};
use crate::utils::{ComponentRunStates, bind_interfaces_needed_by_guest_rust_std};
use std::collections::HashMap;
use wasmtime::component::bindgen;
use wasmtime::component::Resource;
use wasmtime::component::bindgen;
use wasmtime::{Engine, Result};

bindgen!({
Expand Down

0 comments on commit 596cd5d

Please sign in to comment.