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 ;
12use core:: cell:: UnsafeCell ;
23use core:: future:: Future ;
34use core:: mem;
45use core:: ptr:: { self , NonNull } ;
56
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-
117pub use async_task:: Task ;
128use async_task:: { Runnable , ScheduleInfo , WithInfo } ;
139use 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 } ;
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") ) ]
121+ #[ cfg( feature = "alloc" ) ]
123122extern crate alloc;
124- #[ cfg( feature = "std" ) ]
125- extern crate std;
126123
127124pub mod allocator;
128125#[ cfg( feature = "async" ) ]
You can’t perform that action at this time.
0 commit comments