File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ default = ["libc"]
2222no_std  = []
2323box  = [] #  enable use of Box on no_std, requires alloc crate and feature
2424vec  = [] #  enable use of Vec on no_std, requires collections crate and feature
25- rdrand  = []
25+ rdrand  = []  #  with no_std, requires core_io 
2626
2727[dev-dependencies ]
2828log  = " 0.3.0" 
Original file line number Diff line number Diff line change 253253#[ cfg( feature="box" ) ]   extern  crate  alloc; 
254254#[ cfg( feature="vec" ) ]   extern  crate  collections; 
255255
256+ #[ cfg( all( feature="no_std" , feature="rdrand" , not( feature="core_io" ) ) ) ]  
257+ use  using:: rdrand:: feature:: with:: no_std:: feature:: requires:: core_io:: feature; 
258+ 
256259#[ cfg( all( not( feature="no_std" ) , not( feature="rdrand" ) ) ) ]   use  core:: cell:: RefCell ; 
257260use  core:: marker; 
258261use  core:: mem; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments