mirror of
				https://github.com/bolucat/Archive.git
				synced 2025-11-01 04:13:16 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			523 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			523 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Build Standalone Binaries
 | |
| 
 | |
| ### Build with `cross`
 | |
| 
 | |
| - Install [`cross`](https://github.com/rust-embedded/cross)
 | |
| 
 | |
| ```bash
 | |
| cargo install cross
 | |
| ```
 | |
| 
 | |
| - Build with cross
 | |
| 
 | |
| ```bash
 | |
| cross build --target x86_64-unknown-linux-musl
 | |
| ```
 | |
| 
 | |
| ### Predefined build routines
 | |
| 
 | |
| - `build-release`: Build binaries with `cross` and packages outputs into `release` folder
 | |
| - `build-host-release`: Build binaries with host's Rust toolchain. *NIX shell script
 | |
| - `build-host-release.ps1`: Build binaries with host's Rust toolchain. PowerShell script
 | 
