Skip to content

Commit dcff8c7

Browse files
committed
feat: Define monoio MSRV to 1.80
Signed-off-by: Xuanwo <[email protected]>
1 parent 11536fb commit dcff8c7

File tree

8 files changed

+5
-24
lines changed

8 files changed

+5
-24
lines changed

monoio-compat/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name = "monoio-compat"
99
readme = "README.md"
1010
repository = "https://github.com/bytedance/monoio"
1111
version = "0.2.2"
12+
rust-version = "1.80"
1213

1314
[dependencies]
1415
monoio = { version = "0.2.3", path = "../monoio", default-features = false, features = ["legacy"] }

monoio-compat/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! For compat with tokio AsyncRead and AsyncWrite.
22
3-
#![cfg_attr(feature = "unstable", feature(new_uninit))]
4-
53
pub mod box_future;
64
mod buf;
75

monoio-macros/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name = "monoio-macros"
99
readme = "README.md"
1010
repository = "https://github.com/bytedance/monoio"
1111
version = "0.1.0"
12+
rust-version = "1.80"
1213

1314
[lib]
1415
proc-macro = true

monoio/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name = "monoio"
99
readme = "../README.md"
1010
repository = "https://github.com/bytedance/monoio"
1111
version = "0.2.3"
12+
rust-version = "1.80"
1213

1314
# common dependencies
1415
[dependencies]
@@ -61,6 +62,8 @@ tempfile = "3.2"
6162

6263
[features]
6364
# use nightly only feature flags
65+
#
66+
# This feature has been deprecated and will be removed in the future.
6467
unstable = []
6568
# async-cancel will push a async-cancel entry into sq when op is canceled
6669
async-cancel = []

monoio/src/driver/uring/mod.rs

-7
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,6 @@ impl UringInner {
400400
fn submit(&mut self) -> io::Result<()> {
401401
loop {
402402
match self.uring.submit() {
403-
#[cfg(feature = "unstable")]
404-
Err(ref e)
405-
if matches!(e.kind(), io::ErrorKind::Other | io::ErrorKind::ResourceBusy) =>
406-
{
407-
self.tick()?;
408-
}
409-
#[cfg(not(feature = "unstable"))]
410403
Err(ref e)
411404
if matches!(e.raw_os_error(), Some(libc::EAGAIN) | Some(libc::EBUSY)) =>
412405
{

monoio/src/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
#![doc = include_str!("../../README.md")]
22
#![cfg_attr(docsrs, feature(doc_cfg))]
33
#![warn(missing_docs, unreachable_pub)]
4-
#![allow(stable_features)]
54
#![allow(clippy::macro_metavars_in_unsafe)]
6-
#![cfg_attr(feature = "unstable", feature(io_error_more))]
7-
#![cfg_attr(feature = "unstable", feature(lazy_cell))]
8-
#![cfg_attr(feature = "unstable", feature(stmt_expr_attributes))]
9-
#![cfg_attr(feature = "unstable", feature(thread_local))]
105

116
#[macro_use]
127
pub mod macros;

monoio/src/net/tcp/tfo/linux.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
use std::{cell::Cell, io, os::fd::AsRawFd};
22

3-
#[cfg(feature = "unstable")]
4-
#[thread_local]
5-
pub(crate) static TFO_CONNECT_AVAILABLE: Cell<bool> = Cell::new(true);
6-
7-
#[cfg(not(feature = "unstable"))]
83
thread_local! {
94
pub(crate) static TFO_CONNECT_AVAILABLE: Cell<bool> = const { Cell::new(true) };
105
}

monoio/src/task/waker_fn.rs

-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ pub(crate) fn dummy_waker() -> Waker {
2727
unsafe { Waker::from_raw(raw_waker()) }
2828
}
2929

30-
#[cfg(feature = "unstable")]
31-
#[thread_local]
32-
static SHOULD_POLL: Cell<bool> = Cell::new(true);
33-
34-
#[cfg(not(feature = "unstable"))]
3530
thread_local! {
3631
static SHOULD_POLL: Cell<bool> = const { Cell::new(true) };
3732
}

0 commit comments

Comments
 (0)