Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
os: [ubuntu-latest, windows-latest]
# When updating this, the reminder to update the minimum supported
# Rust version in Cargo.toml.
rust: ['1.63']
rust: ['1.70']
steps:
- uses: actions/checkout@v4
- name: Install Rust
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "async-process"
version = "2.4.0"
authors = ["Stjepan Glavina <[email protected]>"]
edition = "2021"
rust-version = "1.63"
rust-version = "1.70"
description = "Async interface for working with processes"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/smol-rs/async-process"
Expand All @@ -15,14 +15,14 @@ categories = ["asynchronous", "os"]
exclude = ["/.*"]

[dependencies]
async-lock = "3.0.0"
async-io = "2.3.0"
cfg-if = "1.0"
event-listener = "5.1.0"
futures-lite = "2.0.0"
tracing = { version = "0.1.40", default-features = false, optional = true }

[target.'cfg(unix)'.dependencies]
async-lock = "3.0.0"
async-signal = "0.2.3"
rustix = { version = "1.0", default-features = false, features = ["std", "fs", "process"] }

Expand Down
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ use std::fmt;
use std::path::Path;
use std::pin::Pin;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::sync::{Arc, Mutex, OnceLock};
use std::task::{Context, Poll};
use std::thread;

Expand All @@ -74,7 +74,6 @@ use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, OwnedFd, RawFd};
#[cfg(windows)]
use blocking::Unblock;

use async_lock::OnceCell;
use futures_lite::{future, io, prelude::*};

#[doc(no_inline)]
Expand Down Expand Up @@ -117,9 +116,9 @@ struct Reaper {
impl Reaper {
/// Get the singleton instance of the reaper.
fn get() -> &'static Self {
static REAPER: OnceCell<Reaper> = OnceCell::new();
static REAPER: OnceLock<Reaper> = OnceLock::new();

REAPER.get_or_init_blocking(|| Reaper {
REAPER.get_or_init(|| Reaper {
sys: reaper::Reaper::new(),
drivers: AtomicUsize::new(0),
child_count: AtomicUsize::new(0),
Expand Down
Loading