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), }