Skip to content

Commit 07023dc

Browse files
committed
fix: use rosu-mem crate
1 parent 17f8e18 commit 07023dc

File tree

15 files changed

+23
-1190
lines changed

15 files changed

+23
-1190
lines changed

Cargo.lock

Lines changed: 16 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ version = "0.2.0"
44
edition = "2021"
55

66
[dependencies]
7+
rosu-mem = { git = "https://github.com/486c/rosu-mem.git", tag = "v1.0.0" }
78
async-tungstenite = "0.23.0"
89
cfg-if = "1.0.0"
910
clap = { version = "4.4.8", default-features = false, features = ["std", "derive", "env"] }
1011
eyre = "0.6.12"
11-
paste = "1.0.14"
1212
rosu-pp = { git = "https://github.com/486c/rosu-pp.git", branch = "main", features = ["gradual"] }
1313
serde = { version = "1.0.192", default-features = false, features = ["derive"] }
1414
serde_json = "1.0.108"
@@ -21,12 +21,6 @@ hyper = { version = "1.0.1", default-features = false, features = ["server", "ht
2121
http-body-util = "0.1.0"
2222
pin-project-lite = "0.2.13"
2323

24-
[target.'cfg(unix)'.dependencies]
25-
nix = { version = "0.25.0", default-features = false, features = ["uio", "process", "feature"] }
26-
27-
[target.'cfg(windows)'.dependencies]
28-
windows = {version = "0.48", features = ["Win32_Foundation", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Threading", "Win32_System_Memory", "Win32_System_Diagnostics_Debug", "Win32_System_ProcessStatus"] }
29-
3024
[features]
3125
tracy-profile = ["tracy-client/default"]
3226

@@ -39,22 +33,3 @@ panic = "abort"
3933

4034
[profile.release.package."*"]
4135
opt-level = "s"
42-
43-
[dev-dependencies]
44-
rand = "0.8.5"
45-
46-
[lints.clippy]
47-
# Ignoring this clippy warning because of one edge case
48-
# with `prim_read_array_impl(u8)`.
49-
#
50-
# std::slice::from_raw_parts_mut(..) expects
51-
# to use element count (see docs) not bytes and in u8 case it becomes
52-
# something like:
53-
# buff.len() * std::mem::size_of::<u8>()
54-
# ^ ^ always 1
55-
# |
56-
# valid length
57-
# where valid length * 1 = valid_length
58-
#
59-
# So clippy thinks we passing bytes count not element count
60-
size_of_in_element_count = "allow"

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
pub mod memory;

src/main.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ use std::time::Duration;
2020

2121
use clap::Parser;
2222

23-
use rosu_memory::
24-
memory::{
25-
process::{Process, ProcessTraits},
26-
error::ProcessError
27-
};
23+
use rosu_mem::{
24+
process::{Process, ProcessTraits},
25+
error::ProcessError
26+
};
2827

2928
use eyre::{Report, Result};
3029

src/memory/error.rs

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)