Skip to content

Commit 26135fb

Browse files
committed
Fix no-std build and bump MSRV to 1.61
Signed-off-by: John Nunley <dev@notgull.net>
1 parent 7eab326 commit 26135fb

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
matrix:
6363
# When updating this, the reminder to update the minimum supported
6464
# Rust version in Cargo.toml.
65-
rust: ['1.59']
65+
rust: ['1.61']
6666
steps:
6767
- uses: actions/checkout@v4
6868
- name: Install Rust

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "async-lock"
66
version = "3.2.0"
77
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
88
edition = "2018"
9-
rust-version = "1.59"
9+
rust-version = "1.61"
1010
description = "Async synchronization primitives"
1111
license = "Apache-2.0 OR MIT"
1212
repository = "https://github.com/smol-rs/async-lock"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ macro_rules! ready {
5858
/// Pins a variable on the stack.
5959
///
6060
/// TODO: Drop in favor of `core::pin::pin`, once MSRV is bumped to 1.68.
61+
#[cfg(all(feature = "std", not(target_family = "wasm")))]
6162
macro_rules! pin {
6263
($($x:ident),* $(,)?) => {
6364
$(

src/once_cell.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ use core::sync::atomic::{AtomicUsize, Ordering};
99
#[cfg(all(feature = "std", not(target_family = "wasm")))]
1010
use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
1111

12-
use event_listener::{Event, Listener};
12+
use event_listener::Event;
1313
use event_listener_strategy::{NonBlocking, Strategy};
1414

15+
#[cfg(all(feature = "std", not(target_family = "wasm")))]
16+
use event_listener::Listener;
17+
1518
/// The current state of the `OnceCell`.
1619
#[derive(Copy, Clone, PartialEq, Eq)]
1720
#[repr(usize)]

0 commit comments

Comments
 (0)