mirror of
https://github.com/Kudaes/ADPT
synced 2026-06-06 16:04:33 +00:00
Small update
This commit is contained in:
@@ -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"
|
||||
@@ -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""#);
|
||||
|
||||
+2
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user