File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,7 @@ use core::future::Future;
33use core:: mem;
44use core:: ptr:: { self , NonNull } ;
55
6- #[ cfg( all( not( feature = "std" ) , feature = "alloc" ) ) ]
76use alloc:: collections:: vec_deque:: VecDeque ;
8- #[ cfg( feature = "std" ) ]
9- use std:: collections:: vec_deque:: VecDeque ;
107
118pub use async_task:: Task ;
129use async_task:: { Runnable , ScheduleInfo , WithInfo } ;
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 } ;
31use core:: cmp;
42use core:: fmt;
53use 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 } ;
87
98use crate :: ffi:: { ngx_str_t, u_char} ;
109
Original file line number Diff line number Diff line change 117117//! brew install --with-toolchain llvm
118118//! ```
119119#![ warn( missing_docs) ]
120- // support both std and no_std
121120#![ no_std]
122- #[ cfg( all( not( feature = "std" ) , feature = "alloc" ) ) ]
123121extern crate alloc;
124- #[ cfg( feature = "std" ) ]
125- extern crate std;
126122
127123pub mod allocator;
128124#[ cfg( feature = "async" ) ]
You can’t perform that action at this time.
0 commit comments