Skip to content

Commit 61dddc2

Browse files
committed
v3.1.1
Signed-off-by: Alex Saveau <[email protected]>
1 parent afbea1e commit 61dddc2

File tree

8 files changed

+21
-15
lines changed

8 files changed

+21
-15
lines changed

Cargo.lock

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ members = [
1313
]
1414

1515
[workspace.package]
16-
version = "1.1.6"
16+
version = "3.1.1"
1717
authors = ["Alex Saveau <[email protected]>"]
1818
edition = "2024"
1919
repository = "https://github.com/SUPERCILEX/fuc"
2020
license = "Apache-2.0"
21+
rust-version = "1.88"
2122

2223
[package]
2324
name = "lint"

cpz/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ repository.workspace = true
88
keywords = ["tools", "files", "cp"]
99
categories = ["command-line-utilities", "development-tools", "filesystem"]
1010
license.workspace = true
11+
rust-version.workspace = true
1112

1213
[dependencies]
1314
clap = { version = "4.5.41", features = ["derive", "wrap_help"] }
1415
error-stack = { version = "0.5.0", default-features = false, features = ["std"] }
15-
fuc_engine = { version = "1", path = "../fuc_engine" }
16+
fuc_engine = { version = "3", path = "../fuc_engine" }
1617
indicatif = { version = "0.18.0", optional = true }
1718
thiserror = "2.0.12"
1819
tracing = { version = "0.1.41", optional = true }

fuc_engine/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ repository.workspace = true
88
keywords = ["tools", "files"]
99
categories = ["filesystem"]
1010
license.workspace = true
11+
rust-version.workspace = true
1112

1213
[dependencies]
1314
bon = "3.6.5"
15+
once_cell = "1.21.3"
1416
crossbeam-channel = "0.5.15"
1517
thiserror = "2.0.12"
1618
tracing = { version = "0.1.41", default-features = false, features = ["attributes"], optional = true }

fuc_engine/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(lazy_cell_into_inner)]
21
#![allow(clippy::needless_pass_by_value)]
32

43
use std::{borrow::Cow, io, path::PathBuf};

fuc_engine/src/ops/copy.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fn schedule_copies<
163163
mod compat {
164164
use std::{
165165
borrow::Cow,
166-
cell::{Cell, LazyCell},
166+
cell::Cell,
167167
env,
168168
ffi::{CStr, CString},
169169
fmt::{Debug, Formatter},
@@ -178,6 +178,7 @@ mod compat {
178178
};
179179

180180
use crossbeam_channel::{Receiver, Sender};
181+
use once_cell::sync::Lazy as LazyCell;
181182
use rustix::{
182183
fs::{
183184
AtFlags, CWD, FileType, Mode, OFlags, RawDir, StatxFlags, copy_file_range, linkat,
@@ -242,7 +243,7 @@ mod compat {
242243
fn finish(self) -> Result<(), Error> {
243244
let Self { scheduling } = self;
244245

245-
if let Ok((tasks, thread)) = LazyCell::into_inner(scheduling) {
246+
if let Ok((tasks, thread)) = LazyCell::into_value(scheduling) {
246247
drop(tasks);
247248
thread.join().map_err(|_| Error::Join)??;
248249
}

fuc_engine/src/ops/remove.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ fn schedule_deletions<'a, I: Into<Cow<'a, Path>>, F: IntoIterator<Item = I>>(
116116
mod compat {
117117
use std::{
118118
borrow::Cow,
119-
cell::LazyCell,
120119
env,
121120
env::{current_dir, set_current_dir},
122121
ffi::{CStr, CString, OsStr},
@@ -135,6 +134,7 @@ mod compat {
135134
};
136135

137136
use crossbeam_channel::{Receiver, Sender};
137+
use once_cell::sync::Lazy as LazyCell;
138138
use rustix::{
139139
fs::{AtFlags, CWD, FileType, Mode, OFlags, RawDir, openat, unlinkat},
140140
io::Errno,
@@ -180,7 +180,7 @@ mod compat {
180180
fn finish(self) -> Result<(), Error> {
181181
let Self { scheduling } = self;
182182

183-
if let Ok((tasks, thread)) = LazyCell::into_inner(scheduling) {
183+
if let Ok((tasks, thread)) = LazyCell::into_value(scheduling) {
184184
drop(tasks);
185185
thread.join().map_err(|_| Error::Join)??;
186186
}

rmz/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ repository.workspace = true
88
keywords = ["tools", "files", "rm"]
99
categories = ["command-line-utilities", "development-tools", "filesystem"]
1010
license.workspace = true
11+
rust-version.workspace = true
1112

1213
[dependencies]
1314
clap = { version = "4.5.41", features = ["derive", "wrap_help"] }
1415
error-stack = { version = "0.5.0", default-features = false, features = ["std"] }
15-
fuc_engine = { version = "1", path = "../fuc_engine" }
16+
fuc_engine = { version = "3", path = "../fuc_engine" }
1617
indicatif = { version = "0.18.0", optional = true }
1718
thiserror = "2.0.12"
1819
tracing = { version = "0.1.41", optional = true }

0 commit comments

Comments
 (0)