build.rs

 1fn main() {
 2    // Find WebRTC.framework as a sibling of the executable when running outside of an application bundle.
 3    // TODO: We shouldn't depend on WebRTC in editor
 4    println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
 5
 6    #[cfg(target_os = "windows")]
 7    {
 8        #[cfg(target_env = "msvc")]
 9        {
10            println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
11        }
12
13        let manifest = std::path::Path::new("../zed/resources/windows/manifest.xml");
14        println!("cargo:rerun-if-changed={}", manifest.display());
15        embed_manifest::embed_manifest(embed_manifest::new_manifest(manifest.to_str().unwrap()))
16            .unwrap();
17    }
18}