use hardened_malloc by default only on supported targets
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
ff0d4c98ee
commit
f6e9c106aa
2 changed files with 9 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -970,6 +970,8 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hardened_malloc-rs"
|
name = "hardened_malloc-rs"
|
||||||
version = "0.1.0+12"
|
version = "0.1.0+12"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8c6924b51567f632a42bd894f3c568d7141680751ea899da1a665cbc3568593e"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hashbrown"
|
name = "hashbrown"
|
||||||
|
|
|
@ -309,8 +309,12 @@ hyperlocal = { git = "https://github.com/softprops/hyperlocal", rev = "2ee4d1496
|
||||||
] } # unix socket support
|
] } # unix socket support
|
||||||
|
|
||||||
[target.'cfg(all(not(target_env = "msvc"), not(target_os = "macos"), target_os = "linux"))'.dependencies]
|
[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 = [
|
||||||
#hardened_malloc-rs = { version = "0.1", optional = true, features = ["static", "clang", "light"], default-features = false }
|
"static",
|
||||||
|
"clang",
|
||||||
|
"light",
|
||||||
|
], default-features = false }
|
||||||
|
#hardened_malloc-rs = { optional = true, features = ["static","clang","light"], path = "../hardened_malloc-rs", default-features = false }
|
||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -322,6 +326,7 @@ default = [
|
||||||
"gzip_compression",
|
"gzip_compression",
|
||||||
"brotli_compression",
|
"brotli_compression",
|
||||||
"zstd_compression",
|
"zstd_compression",
|
||||||
|
"hardened_malloc",
|
||||||
]
|
]
|
||||||
backend_sqlite = ["sqlite"]
|
backend_sqlite = ["sqlite"]
|
||||||
backend_rocksdb = ["rocksdb"]
|
backend_rocksdb = ["rocksdb"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue