This is not well-written Rust; code like the below actually defeats the purpose of using Rust, and without any specific reason for doing so.
I personally discourage people from using this software.
static mut KEYBOARD_HOOKED: bool = false;
fn start_keyboard_hook(&self) {
if unsafe { KEYBOARD_HOOKED } {
return;
}
}
The build even requires an assembler (NASM), which is odd, in this context.