diff --git a/ExportTracer/Cargo.toml b/ExportTracer/Cargo.toml index ad0fcfe..734b114 100644 --- a/ExportTracer/Cargo.toml +++ b/ExportTracer/Cargo.toml @@ -3,10 +3,11 @@ name = "exporttracer" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +strip = true [lib] crate-type = ["cdylib"] [dependencies] -dinvoke_rs= "0.1.4" +dinvoke_rs= "0.1.4" \ No newline at end of file diff --git a/Generator/src/main.rs b/Generator/src/main.rs index 32c6e3c..f8994b1 100644 --- a/Generator/src/main.rs +++ b/Generator/src/main.rs @@ -233,7 +233,7 @@ fn generate_proxy_dll(original_dll_path: String, hijacked_export: String, native let config_path = format!("{}{}", path, r"..\..\..\ProxyDll\.cargo\config"); let template_path: String = format!("{}{}", &path, r"..\..\template3.txt"); - let mut config_content = fs::read_to_string(&template_path).expect("[x] Couldn't read cargo.toml file."); + let mut config_content = fs::read_to_string(&template_path).expect("[x] Couldn't read config template file."); config_content = config_content.replace("{DEF_PATH}", &def_path); if link_runtime { config_content = config_content.replace(r##"#"-C", "target-feature=+crt-static""##, r#""-C", "target-feature=+crt-static""#); diff --git a/ProxyDll/Cargo.toml b/ProxyDll/Cargo.toml index 9f31d91..3ad08a3 100644 --- a/ProxyDll/Cargo.toml +++ b/ProxyDll/Cargo.toml @@ -3,7 +3,8 @@ name = "proxydll" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +strip = true [lib] crate-type = ["cdylib"]