File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change
1
+ use alloc:: collections:: vec_deque:: VecDeque ;
1
2
use core:: cell:: UnsafeCell ;
2
3
use core:: future:: Future ;
3
4
use core:: mem;
4
5
use core:: ptr:: { self , NonNull } ;
5
6
6
- #[ cfg( all( not( feature = "std" ) , feature = "alloc" ) ) ]
7
- use alloc:: collections:: vec_deque:: VecDeque ;
8
- #[ cfg( feature = "std" ) ]
9
- use std:: collections:: vec_deque:: VecDeque ;
10
-
11
7
pub use async_task:: Task ;
12
8
use async_task:: { Runnable , ScheduleInfo , WithInfo } ;
13
9
use nginx_sys:: {
Original file line number Diff line number Diff line change 1
- #[ cfg( all( not( feature = "std" ) , feature = "alloc" ) ) ]
2
- use alloc:: { borrow:: Cow , string:: String } ;
3
1
use core:: cmp;
4
2
use core:: fmt;
5
3
use core:: str:: { self , Utf8Error } ;
6
- #[ cfg( feature = "std" ) ]
7
- use std:: { borrow:: Cow , string:: String } ;
4
+
5
+ #[ cfg( feature = "alloc" ) ]
6
+ use alloc:: { borrow:: Cow , string:: String } ;
8
7
9
8
use crate :: ffi:: { ngx_str_t, u_char} ;
10
9
Original file line number Diff line number Diff line change 117
117
//! brew install --with-toolchain llvm
118
118
//! ```
119
119
#![ warn( missing_docs) ]
120
- // support both std and no_std
121
120
#![ no_std]
122
- #[ cfg( all ( not ( feature = "std" ) , feature = " alloc") ) ]
121
+ #[ cfg( feature = "alloc" ) ]
123
122
extern crate alloc;
124
- #[ cfg( feature = "std" ) ]
125
- extern crate std;
126
123
127
124
pub mod allocator;
128
125
#[ cfg( feature = "async" ) ]
You can’t perform that action at this time.
0 commit comments