add hardened_malloc-rs feature and global_allocator

Signed-off-by: strawberry <strawberry@pupbrain.dev>
This commit is contained in:
strawberry authored and June committed 2024-04-14 22:35:23 -04:00
1 parent 7d92cad55f
commit ff0d4c98ee
4 files changed
+22 -4

No files matched your search

+6
View File
@@ -308,6 +308,10 @@ hyperlocal = { git = "https://github.com/softprops/hyperlocal", rev = "2ee4d1496
"server",
] } # unix socket support
[target.'cfg(all(not(target_env = "msvc"), not(target_os = "macos"), target_os = "linux"))'.dependencies]
hardened_malloc-rs = { optional = true, features = ["static", "clang", "light"], path = "../hardened_malloc-rs", default-features = false }
#hardened_malloc-rs = { version = "0.1", optional = true, features = ["static", "clang", "light"], default-features = false }
[features]
default = [
@@ -343,6 +347,8 @@ perf_measurements = [
"opentelemetry-jaeger",
]
hardened_malloc = ["hardened_malloc-rs"]
# client/server interopability hacks
#
## element has various non-spec compliant behaviour