Fix xwin build

This commit is contained in:
Dimitris Zervas 2023-05-26 15:36:34 +03:00
parent 4928bd9684
commit 41165c5dbb
No known key found for this signature in database
GPG Key ID: 5C27D7C9D1901A30
3 changed files with 9 additions and 60 deletions

49
.vscode/launch.json vendored
View File

@ -1,49 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'frida-deepfreeze-rs'",
"cargo": {
"args": [
"build",
"--bin=frida-deepfreeze-rs",
"--package=frida-deepfreeze-rs"
],
"filter": {
"name": "frida-deepfreeze-rs",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}",
"env": {
"RUST_BACKTRACE": "1",
"FRIDA_CODE": "console.log('Hello from Frida!');"
}
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'frida-deepfreeze-rs'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=frida-deepfreeze-rs",
"--package=frida-deepfreeze-rs"
],
"filter": {
"name": "frida-deepfreeze-rs",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

14
Cargo.lock generated
View File

@ -16,9 +16,9 @@ checksum = "3f1e31e207a6b8fb791a38ea3105e6cb541f55e4d029902d3039a4ad07cc4105"
[[package]] [[package]]
name = "bindgen" name = "bindgen"
version = "0.61.0" version = "0.63.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a022e58a142a46fea340d68012b9201c094e93ec3d033a944a24f8fd4a4f09a" checksum = "36d860121800b2a9a94f9b5604b332d5cffb234ce17609ea479d723dbc9d3885"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"cexpr", "cexpr",
@ -202,8 +202,7 @@ dependencies = [
[[package]] [[package]]
name = "frida" name = "frida"
version = "0.4.0" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/dzervas/frida-rust#1367b5d58bf50738bbeb49272b3eb99b98bbf891"
checksum = "9170f50c3920044c3ca4a25bc93ed38997389a8356a2cff339897a2203ba7830"
dependencies = [ dependencies = [
"frida-sys", "frida-sys",
"thiserror", "thiserror",
@ -212,8 +211,7 @@ dependencies = [
[[package]] [[package]]
name = "frida-build" name = "frida-build"
version = "0.2.1" version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/dzervas/frida-rust#1367b5d58bf50738bbeb49272b3eb99b98bbf891"
checksum = "d2b1525c98a66f38f333d17e56c24562425263a9e07a53e5f59d0857bc360257"
dependencies = [ dependencies = [
"reqwest", "reqwest",
"tar", "tar",
@ -226,7 +224,6 @@ version = "0.1.0"
dependencies = [ dependencies = [
"ctor", "ctor",
"frida", "frida",
"frida-sys",
"goblin", "goblin",
"lazy_static", "lazy_static",
] ]
@ -234,8 +231,7 @@ dependencies = [
[[package]] [[package]]
name = "frida-sys" name = "frida-sys"
version = "0.4.0" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/dzervas/frida-rust#1367b5d58bf50738bbeb49272b3eb99b98bbf891"
checksum = "9bf32fe88d48f055dd9e27fa57c22cb5a1473e83982e7e27f3485bb3f9a5cf85"
dependencies = [ dependencies = [
"bindgen", "bindgen",
"frida-build", "frida-build",

View File

@ -11,8 +11,10 @@ name = "standalone"
path = "src/main.rs" path = "src/main.rs"
[dependencies] [dependencies]
frida = { version = "0.4.0", features = ["auto-download"] } # frida = { version = "0.4.0", features = ["auto-download"] }
frida-sys = { version = "0.4.0", features = ["auto-download", "frida-build"] } # frida-sys = { version = "0.4.0", features = ["auto-download", "frida-build"] }
frida = { git = "https://github.com/dzervas/frida-rust", features = ["auto-download"] }
# frida-sys = { git = "https://github.com/frida/frida-rust", features = ["auto-download"] }
lazy_static = "1.4.0" lazy_static = "1.4.0"
ctor = "0.2.0" ctor = "0.2.0"