Skip to content

Commit 31d234d

Browse files
authored
fix(signal): remove "lazy_cell" as a nightly feature (#798)
1 parent 474c172 commit 31d234d

5 files changed

Lines changed: 8 additions & 17 deletions

File tree

compio-signal/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ all-features = true
1414
rustdoc-args = ["--cfg", "docsrs"]
1515

1616
[dependencies]
17-
once_cell = { workspace = true }
1817
slab = { workspace = true }
1918
synchrony = { workspace = true, features = ["async_flag"] }
2019

2120
# Windows specific dependencies
2221
[target.'cfg(windows)'.dependencies]
22+
once_cell = { workspace = true }
2323
windows-sys = { workspace = true, features = [
2424
"Win32_Foundation",
2525
"Win32_System_Console",
@@ -35,6 +35,5 @@ futures-executor = { workspace = true }
3535

3636
[features]
3737
# Nightly features
38-
lazy_cell = []
3938
once_cell_try = []
40-
nightly = ["lazy_cell", "once_cell_try"]
39+
nightly = ["once_cell_try"]

compio-signal/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
1616
#![cfg_attr(docsrs, feature(doc_cfg))]
1717
#![cfg_attr(feature = "once_cell_try", feature(once_cell_try))]
18-
#![cfg_attr(feature = "lazy_cell", feature(lazy_cell))]
1918
#![allow(unused_features)]
2019
#![warn(missing_docs)]
2120
#![deny(rustdoc::broken_intra_doc_links)]
22-
#![allow(stable_features)]
2321
#![doc(
2422
html_logo_url = "https://github.com/compio-rs/compio-logo/raw/refs/heads/master/generated/colored-bold.svg"
2523
)]

compio-signal/src/unix.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
//! Unix-specific types for signal handling.
22
3-
#[cfg(feature = "lazy_cell")]
4-
use std::sync::LazyLock;
53
use std::{
64
collections::HashMap,
75
io::{self, Read, Write},
86
ops::Deref,
9-
sync::Mutex,
7+
sync::{LazyLock, Mutex},
108
};
119

12-
#[cfg(not(feature = "lazy_cell"))]
13-
use once_cell::sync::Lazy as LazyLock;
1410
use os_pipe::{PipeReader, PipeWriter};
1511
use slab::Slab;
1612
use synchrony::sync::async_flag::{AsyncFlag as Event, AsyncFlagHandle as EventHandle};

compio-signal/src/windows.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Windows-specific types for signal handling.
22
3-
#[cfg(feature = "lazy_cell")]
4-
use std::sync::LazyLock;
53
#[cfg(feature = "once_cell_try")]
64
use std::sync::OnceLock;
7-
use std::{collections::HashMap, io, sync::Mutex};
5+
use std::{
6+
collections::HashMap,
7+
io,
8+
sync::{LazyLock, Mutex},
9+
};
810

9-
#[cfg(not(feature = "lazy_cell"))]
10-
use once_cell::sync::Lazy as LazyLock;
1111
#[cfg(not(feature = "once_cell_try"))]
1212
use once_cell::sync::OnceCell as OnceLock;
1313
use slab::Slab;

compio/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ enable_log = ["compio-log/enable_log"]
126126
# Nightly features
127127
allocator_api = ["compio-buf/allocator_api", "compio-io?/allocator_api"]
128128
current_thread_id = ["compio-runtime?/current_thread_id"]
129-
lazy_cell = ["compio-signal?/lazy_cell"]
130129
linux_pidfd = ["compio-process?/linux_pidfd"]
131130
once_cell_try = [
132131
"compio-driver/once_cell_try",
@@ -146,7 +145,6 @@ future-combinator = ["compio-runtime?/future-combinator"]
146145
nightly = [
147146
"allocator_api",
148147
"current_thread_id",
149-
"lazy_cell",
150148
"linux_pidfd",
151149
"once_cell_try",
152150
"proc_macro_diagnostic",

0 commit comments

Comments
 (0)