From 4c9273daedd6fa8c03f154e84e584bd217b33c55 Mon Sep 17 00:00:00 2001 From: futile Date: Mon, 30 Dec 2024 18:58:24 +0000 Subject: [PATCH] some other cleanup --- Cargo.toml | 7 +++++-- README.md | 2 ++ src/error.rs | 6 +++--- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 README.md diff --git a/Cargo.toml b/Cargo.toml index c808abb..273c14f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,11 +2,14 @@ name = "haxor" version = "0.1.0" edition = "2021" +description = "memory hacking library" +repository = "https://codeberg.org/futile/haxor" +license = "Apache-2.0" +keywords = ["memory", "game", "hacking", "process"] [dependencies] derive_more = { version = "1.0.0", features = ["display"] } thiserror = "2.0.9" -windows-core = "0.58.0" [dependencies.windows] version = "0.58.0" @@ -14,5 +17,5 @@ features = [ "Win32_Foundation", "Win32_System_Threading", "Win32_System_Diagnostics_ToolHelp", - "Win32_System_Diagnostics_Debug" + "Win32_System_Diagnostics_Debug", ] diff --git a/README.md b/README.md new file mode 100644 index 0000000..8f1359b --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +## haxor +memory hacking library diff --git a/src/error.rs b/src/error.rs index eb206bb..ea77a48 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,12 +4,12 @@ use thiserror::Error; pub enum Error { #[error("failed to obtain handle")] HandleError(String), - #[error("failed to create instance")] + #[error("failed to access process memory")] + MemoryError(String), + #[error("failed to create process")] ProcessError(String), #[error("failed to create snapshot")] SnapshotError(String), #[error("failed to convert integer")] IntegerConversionError(#[from] std::num::TryFromIntError), - #[error("failed to access process memory")] - MemoryError(String), }