mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-10-31 12:06:13 +00:00 
			
		
		
		
	 2586f655bb
			
		
	
	
		2586f655bb
		
			
		
	
	
	
	
		
			
			First, replace all usages in files in-place. I used my editor for this. If someone wants to add a one-liner that'd be fun. Then, update directory and file names: ``` # Run twice for nested directories find . -type d -print0 | xargs -0 rename s/puffin/uv/g find . -type d -print0 | xargs -0 rename s/puffin/uv/g # Update files find . -type f -print0 | xargs -0 rename s/puffin/uv/g ``` Then add all the files again ``` # Add all the files again git add crates git add python/uv # This one needs a force-add git add -f crates/uv-trampoline ```
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			739 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			739 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // This embeds a "manifest" - a special XML document - into our built binary.
 | |
| // The main things it does is tell Windows that we want to use the magic
 | |
| // utf8 codepage, so we can use the *A versions of Windows API functions and
 | |
| // don't have to mess with utf-16.
 | |
| use embed_manifest::{embed_manifest, new_manifest};
 | |
| 
 | |
| fn main() {
 | |
|     if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
 | |
|         let manifest =
 | |
|             new_manifest("uv.Trampoline").remove_dependency("Microsoft.Windows.Common-Controls");
 | |
|         embed_manifest(manifest).expect("unable to embed manifest");
 | |
|         println!("cargo:rustc-link-arg=/ENTRY:entry");
 | |
|         println!("cargo:rustc-link-arg=/LTCG");
 | |
|         println!("cargo:rerun-if-changed=build.rs");
 | |
|     }
 | |
| }
 |