mirror of
				https://git.proxmox.com/git/proxmox
				synced 2025-10-31 03:54:56 +00:00 
			
		
		
		
	add helper Makefile
make -> make check make check -> cargo test make fmt -> cargo fmt --all make checkfmt -> cargo fmt --all -- --check ... Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
		
							parent
							
								
									a202f3ce99
								
							
						
					
					
						commit
						35a60f765e
					
				
							
								
								
									
										32
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| # Shortcut for common operations:
 | ||||
| 
 | ||||
| # By default we just run checks:
 | ||||
| .PHONY: all | ||||
| all: check | ||||
| 
 | ||||
| .PHONY: check | ||||
| check: | ||||
| 	cargo test | ||||
| 
 | ||||
| # Prints a diff between the current code and the one rustfmt would produce
 | ||||
| .PHONY: fmt | ||||
| checkfmt: | ||||
| 	cargo fmt --all -- --check | ||||
| 
 | ||||
| # Reformat the code (ppply the output of `make checkfmt`)
 | ||||
| .PHONY: fmt | ||||
| fmt: | ||||
| 	cargo fmt --all | ||||
| 
 | ||||
| # Doc without dependencies
 | ||||
| .PHONY: doc | ||||
| doc: | ||||
| 	cargo doc --no-deps | ||||
| 
 | ||||
| .PHONY: clean | ||||
| clean: | ||||
| 	cargo clean | ||||
| 
 | ||||
| .PHONY: update | ||||
| update: | ||||
| 	cargo update | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Wolfgang Bumiller
						Wolfgang Bumiller