Skip to content

Commit

Permalink
Fixed: Portable should always depend on libc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Dec 30, 2023
1 parent b72dc25 commit 86381dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions projects/reloaded-hooks-portable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ derive_more = { version = "0.99.17", default-features = false, features = ["from
derive-new = { version = "0.6.0", default-features = false }
bitfield = "0.14.0"
portable-atomic = "1.6.0"
libc = "0.2.146" # direct access to mprotect (unix) & malloc

# Tests only!
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
Expand All @@ -36,9 +37,6 @@ pprof = { version = "0.12", features = ["flamegraph", "criterion"] }
[target.'cfg(not(target_os = "windows"))'.dependencies]
clf = "0.1.7" # flushing cache

[target.'cfg(unix)'.dependencies]
libc = "0.2.146" # direct access to mprotect

[target.'cfg(target_os = "macos")'.dependencies]
mach = "0.3.2" # direct access to macOS memory stuff

Expand Down

0 comments on commit 86381dc

Please sign in to comment.