From 0cb8c755d364c64c7dca833e66cdd48f6ab61251 Mon Sep 17 00:00:00 2001 From: Francois Drolet Date: Fri, 12 Apr 2024 11:01:01 -0400 Subject: [PATCH] fix: replace atomic to portable_atomic because atomic is now deprecated --- .gitignore | 1 + Cargo.toml | 4 ++-- src/split.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a9d37c56..2da6cdeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ target Cargo.lock +.idea \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 9869aff2..81d86bba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "embedded-tls" -version = "0.17.0" +version = "0.17.1" edition = "2021" description = "TLS 1.3 client with no_std support and no allocator" documentation = "https://docs.rs/embedded-tls" @@ -12,7 +12,7 @@ keywords = ["embedded", "async", "tls", "no_std", "network"] exclude = [".github"] [dependencies] -atomic-polyfill = "1" +portable-atomic = { version = "1.6.0", default-features = false } p256 = { version = "0.13.2", default-features = false, features = [ "ecdh", "ecdsa", diff --git a/src/split.rs b/src/split.rs index edaeee7d..8b95ea49 100644 --- a/src/split.rs +++ b/src/split.rs @@ -1,4 +1,4 @@ -use atomic_polyfill::{AtomicBool, Ordering}; +use portable_atomic::{AtomicBool, Ordering}; pub trait SplitState: Clone { fn same(&self, other: &Self) -> bool;