Skip to content

Commit cc65e55

Browse files
authored
Depend on 1.63 and drop build script autodetection (#17)
Debian stable releases in a few days, and has Rust 1.63. Bump the MSRV to 1.63, and remove the build script autodetection.
1 parent 91c28ea commit cc65e55

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
os: [ubuntu-latest, windows-latest]
5353
# When updating this, the reminder to update the minimum supported
5454
# Rust version in Cargo.toml.
55-
rust: ['1.48']
55+
rust: ['1.63']
5656
steps:
5757
- uses: actions/checkout@v3
5858
- 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-fs"
66
version = "1.6.0"
77
authors = ["Stjepan Glavina <[email protected]>"]
88
edition = "2018"
9-
rust-version = "1.48"
9+
rust-version = "1.63"
1010
description = "Async filesystem primitives"
1111
license = "Apache-2.0 OR MIT"
1212
repository = "https://github.com/smol-rs/async-fs"

build.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,28 +1091,28 @@ impl std::os::windows::io::AsRawHandle for File {
10911091
}
10921092
}
10931093

1094-
#[cfg(all(not(async_fs_no_io_safety), unix))]
1094+
#[cfg(unix)]
10951095
impl From<std::os::unix::io::OwnedFd> for File {
10961096
fn from(fd: std::os::unix::io::OwnedFd) -> Self {
10971097
File::from(std::fs::File::from(fd))
10981098
}
10991099
}
11001100

1101-
#[cfg(all(not(async_fs_no_io_safety), windows))]
1101+
#[cfg(windows)]
11021102
impl From<std::os::windows::io::OwnedHandle> for File {
11031103
fn from(fd: std::os::windows::io::OwnedHandle) -> Self {
11041104
File::from(std::fs::File::from(fd))
11051105
}
11061106
}
11071107

1108-
#[cfg(all(not(async_fs_no_io_safety), unix))]
1108+
#[cfg(unix)]
11091109
impl std::os::unix::io::AsFd for File {
11101110
fn as_fd(&self) -> std::os::unix::io::BorrowedFd<'_> {
11111111
self.file.as_fd()
11121112
}
11131113
}
11141114

1115-
#[cfg(all(not(async_fs_no_io_safety), windows))]
1115+
#[cfg(windows)]
11161116
impl std::os::windows::io::AsHandle for File {
11171117
fn as_handle(&self) -> std::os::windows::io::BorrowedHandle<'_> {
11181118
self.file.as_handle()

0 commit comments

Comments
 (0)