Skip to content

Commit

Permalink
Remove mimalloc override feature for macos (#388)
Browse files Browse the repository at this point in the history
* Remove mimalloc "override" feature for macos only

* Move mimalloc dependency fully in utils/alloc
  • Loading branch information
coderofstuff committed Jan 15, 2024
1 parent f178e8d commit 63523be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ include = [
]

[workspace.dependencies]
mimalloc = { version = "0.1.39", default-features = false, features = [
'override',
] }
# kaspa-testing-integration = { version = "0.13.3", path = "testing/integration" }
kaspa-addresses = { version = "0.13.3", path = "crypto/addresses" }
kaspa-addressmanager = { version = "0.13.3", path = "components/addressmanager" }
Expand Down
10 changes: 8 additions & 2 deletions utils/alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ license.workspace = true
edition.workspace = true
include.workspace = true

[dependencies]
mimalloc.workspace = true
[target.'cfg(not(target_os = "macos"))'.dependencies]
mimalloc = { version = "0.1.39", default-features = false, features = [
'override',
] }

[target.'cfg(target_os = "macos")'.dependencies]
# override is unstable in MacOS and is thus excluded
mimalloc = { version = "0.1.39", default-features = false }

[features]
heap = []

0 comments on commit 63523be

Please sign in to comment.