diff --git a/Cargo.toml b/Cargo.toml index 76a8cf9..f9ffe7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,7 @@ edition = "2021" [dependencies] rivets = { git = "https://github.com/factorio-rivets/rivets" } -retour = { version = "0.3", features = ["static-detour"] } -anyhow = "1.0.86" -ctor = "0.2.8" +abi_stable = "0.11" [lib] crate-type = ["dylib"] diff --git a/src/lib.rs b/src/lib.rs index e579e67..10287a7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,3 +36,5 @@ fn valid(this: Opaque) -> bool { println!("Hello from Rust!"); false } + +rivets::finalize!();