From c8be7df1e73ca7d58befa277570c76981404b228 Mon Sep 17 00:00:00 2001 From: Al Liu Date: Mon, 15 Apr 2024 13:54:38 +0800 Subject: [PATCH] Bump up versions and cleanup warnings --- rust/Cargo.toml | 6 +++--- rust/src/memory.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 35b23fd..ff7f647 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -15,9 +15,9 @@ byteorder = "1" blake3 = { version = "1", features = ["std", "traits-preview"] } bs58 = "0.5" chrono = { version = "0.4", default-features = false, features = ["alloc", "serde"] } -flatbuffers = "23.5.26" +flatbuffers = "24.3" futures = "0.3" -semver = { version = "1.0.14", features = ["serde"] } +semver = { version = "1", features = ["serde"] } serde = { version = "1", features = ["derive"] } serde_bytes = "0.11" serde_json = "1" @@ -32,7 +32,7 @@ freenet-macros = { path = "../rust-macros", version = "0.0.5" } [target.'cfg(any(unix, windows))'.dependencies] tokio = { version = "1", optional = true, features = ["macros", "parking_lot", "rt-multi-thread", "sync", "time"] } -tokio-tungstenite = { version = "0.20", optional = true } +tokio-tungstenite = { version = "0.21", optional = true } serde_with = { version = "3" } [target.'cfg(target_family = "wasm")'.dependencies] diff --git a/rust/src/memory.rs b/rust/src/memory.rs index 49adcf4..35e9ca7 100644 --- a/rust/src/memory.rs +++ b/rust/src/memory.rs @@ -26,7 +26,7 @@ impl WasmLinearMem { #[cfg(feature = "contract")] pub mod wasm_interface { - use crate::{contract_interface::wasm_interface::ContractInterfaceResult, prelude::*}; + use crate::prelude::*; fn set_logger() -> Result<(), ContractInterfaceResult> { #[cfg(feature = "trace")]