Skip to content

Commit ac36f51

Browse files
committed
Disable async-std and tokio support for now.
Once these crates have implementations of the I/O safety types and traits, we can re-enable these.
1 parent e9ba18c commit ac36f51

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
This crate defines the [`CharDevice`] struct, a simple wrapper around
1616
`std::fs::File` for character devices.
1717

18+
Support for async-std and tokio is temporarily disabled until those crates
19+
contain the needed implementations of the I/O safety traits.
20+
1821
[`CharDevice`]: https://docs.rs/char-device/latest/char_device/struct.CharDevice.html

src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@
55
#![cfg_attr(write_all_vectored, feature(write_all_vectored))]
66
#![cfg_attr(io_lifetimes_use_std, feature(io_safety))]
77

8+
/*
89
#[cfg(feature = "async-std")]
910
mod async_std;
11+
*/
1012
mod char_device;
13+
/*
1114
#[cfg(feature = "tokio")]
1215
mod tokio;
16+
*/
1317

18+
/*
1419
#[cfg(feature = "async-std")]
1520
pub use crate::async_std::AsyncStdCharDevice;
21+
*/
1622
pub use crate::char_device::CharDevice;
23+
/*
1724
#[cfg(feature = "tokio")]
1825
pub use crate::tokio::TokioCharDevice;
26+
*/

tests/null.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
/*
12
#[cfg(feature = "async-std")]
23
use char_device::AsyncStdCharDevice;
4+
*/
35
use char_device::CharDevice;
6+
/*
47
#[cfg(feature = "tokio")]
58
use char_device::TokioCharDevice;
9+
*/
610

711
#[test]
812
fn null() {
@@ -15,6 +19,7 @@ fn null() {
1519
assert_eq!(char_device.read(&mut buf).unwrap(), 0);
1620
}
1721

22+
/*
1823
#[cfg(feature = "async-std")]
1924
#[async_std::test]
2025
async fn async_std_null() {
@@ -38,3 +43,4 @@ async fn tokio_null() {
3843
let mut buf = vec![0_u8; 32];
3944
assert_eq!(char_device.read(&mut buf).await.unwrap(), 0);
4045
}
46+
*/

tests/tty.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#![cfg(unix)]
22

3+
/*
34
#[cfg(feature = "async-std")]
45
use char_device::AsyncStdCharDevice;
6+
*/
57
use char_device::CharDevice;
8+
/*
69
#[cfg(feature = "tokio")]
710
use char_device::TokioCharDevice;
11+
*/
812

913
#[test]
1014
fn tty() {
@@ -21,6 +25,7 @@ fn tty() {
2125
};
2226
}
2327

28+
/*
2429
#[cfg(feature = "async-std")]
2530
#[async_std::test]
2631
async fn async_std_tty() {
@@ -52,3 +57,4 @@ async fn tokio_tty() {
5257
},
5358
};
5459
}
60+
*/

0 commit comments

Comments
 (0)