From 2ff653719d1fbe1885ab8ecd9c7daed74b2d9893 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sat, 14 Sep 2024 13:31:04 +0800 Subject: [PATCH] Replace async-mutex with async-lock --- src/bastion/Cargo.toml | 3 ++- src/bastion/src/system.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bastion/Cargo.toml b/src/bastion/Cargo.toml index 582c2856..1d536855 100644 --- a/src/bastion/Cargo.toml +++ b/src/bastion/Cargo.toml @@ -16,6 +16,7 @@ documentation = "https://docs.rs/bastion" readme = "../../README.md" license = "Apache-2.0/MIT" edition = "2018" +rust-version = "1.63" exclude = [ ".github/*", "examples/*", @@ -64,7 +65,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" pin-utils = "0.1" -async-mutex = "1.1" +async-lock = "3.4" uuid = { version = "0.8", features = ["v4"] } # Distributed diff --git a/src/bastion/src/system.rs b/src/bastion/src/system.rs index 9ff74f15..1c8272ce 100644 --- a/src/bastion/src/system.rs +++ b/src/bastion/src/system.rs @@ -6,7 +6,7 @@ use crate::envelope::Envelope; use crate::message::{BastionMessage, Deployment}; use crate::path::{BastionPath, BastionPathElement}; use crate::supervisor::{Supervisor, SupervisorRef}; -use async_mutex::Mutex as AsyncMutex; +use async_lock::Mutex as AsyncMutex; use bastion_executor::pool; use futures::prelude::*; use futures::stream::FuturesUnordered;