| Crates.io | ghost-rs |
| lib.rs | ghost-rs |
| version | 0.2.0 |
| created_at | 2023-04-06 05:25:45.416865+00 |
| updated_at | 2024-06-30 04:23:00.894819+00 |
| description | Crate using std::env for stealthily removing EXE |
| homepage | https://github.com/brohamgoham/ghost-rs |
| repository | https://github.com/brohamgoham/ghost-rs |
| max_upload_size | |
| id | 831945 |
| size | 14,751 |
Ghost is a tool for removing your executable while it's process is still running.
// On windows (`svcmsrpc`)
use ghost;
fn main() {
match ghost::ninja() {
Ok(_) => println!("Just went GHOST 👻"),
Err(e) => println!("Nope! => {}", e),
};
}
// With placeholder
use ghost::ninja;
fn main() {
#[cfg(target_os = "windows")]
match ghost::ninja_with_placeholder("temporary") {
Ok(_) => println!("Went GHOST!!"),
Err(e) => println!("Nope! => {}", e),
};
}