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