Commit ac36f51 1 parent e9ba18c commit ac36f51 Copy full SHA for ac36f51
File tree 4 files changed +23
-0
lines changed
4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 15
15
This crate defines the [ ` CharDevice ` ] struct, a simple wrapper around
16
16
` std::fs::File ` for character devices.
17
17
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
+
18
21
[ `CharDevice` ] : https://docs.rs/char-device/latest/char_device/struct.CharDevice.html
Original file line number Diff line number Diff line change 5
5
#![ cfg_attr( write_all_vectored, feature( write_all_vectored) ) ]
6
6
#![ cfg_attr( io_lifetimes_use_std, feature( io_safety) ) ]
7
7
8
+ /*
8
9
#[cfg(feature = "async-std")]
9
10
mod async_std;
11
+ */
10
12
mod char_device;
13
+ /*
11
14
#[cfg(feature = "tokio")]
12
15
mod tokio;
16
+ */
13
17
18
+ /*
14
19
#[cfg(feature = "async-std")]
15
20
pub use crate::async_std::AsyncStdCharDevice;
21
+ */
16
22
pub use crate :: char_device:: CharDevice ;
23
+ /*
17
24
#[cfg(feature = "tokio")]
18
25
pub use crate::tokio::TokioCharDevice;
26
+ */
Original file line number Diff line number Diff line change
1
+ /*
1
2
#[cfg(feature = "async-std")]
2
3
use char_device::AsyncStdCharDevice;
4
+ */
3
5
use char_device:: CharDevice ;
6
+ /*
4
7
#[cfg(feature = "tokio")]
5
8
use char_device::TokioCharDevice;
9
+ */
6
10
7
11
#[ test]
8
12
fn null ( ) {
@@ -15,6 +19,7 @@ fn null() {
15
19
assert_eq ! ( char_device. read( & mut buf) . unwrap( ) , 0 ) ;
16
20
}
17
21
22
+ /*
18
23
#[cfg(feature = "async-std")]
19
24
#[async_std::test]
20
25
async fn async_std_null() {
@@ -38,3 +43,4 @@ async fn tokio_null() {
38
43
let mut buf = vec![0_u8; 32];
39
44
assert_eq!(char_device.read(&mut buf).await.unwrap(), 0);
40
45
}
46
+ */
Original file line number Diff line number Diff line change 1
1
#![ cfg( unix) ]
2
2
3
+ /*
3
4
#[cfg(feature = "async-std")]
4
5
use char_device::AsyncStdCharDevice;
6
+ */
5
7
use char_device:: CharDevice ;
8
+ /*
6
9
#[cfg(feature = "tokio")]
7
10
use char_device::TokioCharDevice;
11
+ */
8
12
9
13
#[ test]
10
14
fn tty ( ) {
@@ -21,6 +25,7 @@ fn tty() {
21
25
} ;
22
26
}
23
27
28
+ /*
24
29
#[cfg(feature = "async-std")]
25
30
#[async_std::test]
26
31
async fn async_std_tty() {
@@ -52,3 +57,4 @@ async fn tokio_tty() {
52
57
},
53
58
};
54
59
}
60
+ */
You can’t perform that action at this time.
0 commit comments