some other cleanup

This commit is contained in:
2024-12-30 18:58:24 +00:00
parent 18df986c67
commit 4c9273daed
3 changed files with 10 additions and 5 deletions
+5 -2
View File
@@ -2,11 +2,14 @@
name = "haxor" name = "haxor"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
description = "memory hacking library"
repository = "https://codeberg.org/futile/haxor"
license = "Apache-2.0"
keywords = ["memory", "game", "hacking", "process"]
[dependencies] [dependencies]
derive_more = { version = "1.0.0", features = ["display"] } derive_more = { version = "1.0.0", features = ["display"] }
thiserror = "2.0.9" thiserror = "2.0.9"
windows-core = "0.58.0"
[dependencies.windows] [dependencies.windows]
version = "0.58.0" version = "0.58.0"
@@ -14,5 +17,5 @@ features = [
"Win32_Foundation", "Win32_Foundation",
"Win32_System_Threading", "Win32_System_Threading",
"Win32_System_Diagnostics_ToolHelp", "Win32_System_Diagnostics_ToolHelp",
"Win32_System_Diagnostics_Debug" "Win32_System_Diagnostics_Debug",
] ]
+2
View File
@@ -0,0 +1,2 @@
## haxor
memory hacking library
+3 -3
View File
@@ -4,12 +4,12 @@ use thiserror::Error;
pub enum Error { pub enum Error {
#[error("failed to obtain handle")] #[error("failed to obtain handle")]
HandleError(String), HandleError(String),
#[error("failed to create instance")] #[error("failed to access process memory")]
MemoryError(String),
#[error("failed to create process")]
ProcessError(String), ProcessError(String),
#[error("failed to create snapshot")] #[error("failed to create snapshot")]
SnapshotError(String), SnapshotError(String),
#[error("failed to convert integer")] #[error("failed to convert integer")]
IntegerConversionError(#[from] std::num::TryFromIntError), IntegerConversionError(#[from] std::num::TryFromIntError),
#[error("failed to access process memory")]
MemoryError(String),
} }