File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1+ [target .wasm32-unknown-unknown ]
2+ rustflags  = [' --cfg' ' getrandom_backend="wasm_js"' 
Original file line number Diff line number Diff line change 11check :
2- 	cargo check
2+ 	cargo check --quiet --no-default-features 
3+ 	cargo check --quiet --all-features
4+ 	cargo check --quiet --no-default-features --target wasm32-unknown-unknown
5+ 	cargo check --quiet --all-features --target wasm32-unknown-unknown
36
47test :
5- 	cargo test 
8+ 	cargo test  --all-features 
69
710doc :
811	cargo doc
3235	corepack enable  &&  yarn &&  yarn md-fmt
3336
3437clippy :
35- 	cargo clippy --all-targets --quiet --no-deps -- --deny=warnings
36- 	cargo clippy --all-targets --no-default-features --quiet --no-deps -- --deny=warnings
3738	cargo clippy --all-targets --all-features --quiet --no-deps -- --deny=warnings
39+ 	cargo clippy --all-features --target wasm32-unknown-unknown --quiet --no-deps -- --deny=warnings
3840
3941#  Checks if all headers are present and adds if not
4042license :
Original file line number Diff line number Diff line change @@ -25,5 +25,8 @@ thiserror = { workspace = true }
2525[dev-dependencies ]
2626filecoin-f3-gpbft  = { features  = [" test-utils" path  = " ../gpbft" 
2727
28+ [target .'cfg(target_family="wasm")' .dependencies ]
29+ getrandom  = { version  = " 0.3" features  = [" wasm_js" 
30+ 
2831[features ]
2932test-utils  = []
Original file line number Diff line number Diff line change 11[toolchain ]
22channel  = " 1.85.0" 
33components  = [" clippy" " llvm-tools-preview" " rustfmt" 
4+ targets  = [" wasm32-unknown-unknown" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments