mirror of
				https://github.com/Swatinem/rust-cache.git
				synced 2025-10-31 23:43:47 +00:00 
			
		
		
		
	Add multiple crates to wasm test workspace. Update selftest
This commit is contained in:
		
							parent
							
								
									fca91510b6
								
							
						
					
					
						commit
						b6a2848a50
					
				
							
								
								
									
										6
									
								
								.github/workflows/selftest.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/selftest.yml
									
									
									
									
										vendored
									
									
								
							| @ -24,9 +24,9 @@ jobs: | ||||
|       - uses: ./ | ||||
|         with: | ||||
|           cache-on-failure: true | ||||
|           target-dir: | | ||||
|             target/ | ||||
|             wasm-workspace/target/ | ||||
|           workspace-paths: | | ||||
|             ./ | ||||
|             wasm-workspace/ | ||||
| 
 | ||||
|       - run: | | ||||
|           cargo install cargo-deny --locked | ||||
|  | ||||
| @ -1,18 +1,5 @@ | ||||
| [workspace] | ||||
| members = ["."] | ||||
| 
 | ||||
| [package] | ||||
| name = "wasm-workspace" | ||||
| version = "0.1.0" | ||||
| edition = "2018" | ||||
| 
 | ||||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||||
| 
 | ||||
| [dependencies] | ||||
| reqwest = "0.11.0" | ||||
| async-std = "1" | ||||
| tracing = "0.1" | ||||
| tracing-futures = "0.2" | ||||
| serde = "1" | ||||
| serde_json = "1" | ||||
| toml = "" | ||||
| members = [ | ||||
|     "crates/one", | ||||
|     "crates/two", | ||||
| ] | ||||
|  | ||||
							
								
								
									
										14
									
								
								wasm-workspace/crates/one/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								wasm-workspace/crates/one/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| [package] | ||||
| name = "wasm-one" | ||||
| version = "0.1.0" | ||||
| edition = "2018" | ||||
| 
 | ||||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||||
| 
 | ||||
| [dependencies] | ||||
| reqwest = "0.11.0" | ||||
| async-std = "1" | ||||
| tracing = "0.1" | ||||
| tracing-futures = "0.2" | ||||
| serde = "1" | ||||
| serde_json = "1" | ||||
							
								
								
									
										9
									
								
								wasm-workspace/crates/two/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								wasm-workspace/crates/two/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | ||||
| [package] | ||||
| name = "wasm-two" | ||||
| version = "0.1.0" | ||||
| edition = "2018" | ||||
| 
 | ||||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||||
| 
 | ||||
| [dependencies] | ||||
| clap = "3" | ||||
							
								
								
									
										3
									
								
								wasm-workspace/crates/two/src/main.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								wasm-workspace/crates/two/src/main.rs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| fn main() { | ||||
|     println!("Hello, world!"); | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user