mirror of
				https://github.com/Swatinem/rust-cache
				synced 2025-11-04 06:29:10 +00:00 
			
		
		
		
	collect packages with --all-features
This commit is contained in:
		
							parent
							
								
									99970e092c
								
							
						
					
					
						commit
						8902a8fc6c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -64,7 +64,7 @@ interface PackageDefinition {
 | 
			
		|||
type Packages = Array<PackageDefinition>;
 | 
			
		||||
 | 
			
		||||
async function getPackages(): Promise<Packages> {
 | 
			
		||||
  const meta = JSON.parse(await getCmdOutput("cargo", ["metadata", "--format-version", "1"]));
 | 
			
		||||
  const meta = JSON.parse(await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1"]));
 | 
			
		||||
  return meta.packages.map(({ name, version }: any) => ({ name, version }));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue