Skip to content

Commit b3ec954

Browse files
authored
Merge pull request #2 from vadage/task/upgrade-detour
Upgrade to retour as it is now distributed as crate #1
2 parents efe4057 + d24630d commit b3ec954

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "jvm-hook"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111

1212
[dependencies]
1313
jni = "0.20.0"
14-
detour = { git = "https://github.com/Hpmason/detour-rs", branch = "fix-nightly1.67.0-changes" }
14+
retour = { version = "0.3.1", features = ["static-detour"] }
1515
winapi = { version = "0.3.9", features = ["libloaderapi"] }
1616

1717
[profile.release]

src/class_loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::ffi::CString;
22
use std::mem;
33
use std::slice::from_raw_parts_mut;
44

5-
use detour::static_detour;
5+
use retour::static_detour;
66
use jni::sys::{jbyte, jclass, JNIEnv, jobject, jsize};
77
use winapi::ctypes::c_char;
88
use winapi::um::libloaderapi::{GetModuleHandleA, GetProcAddress};

0 commit comments

Comments
 (0)