mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
add hardened_malloc-rs feature and global_allocator
Signed-off-by: strawberry <strawberry@pupbrain.dev>
This commit is contained in:
1 parent
7d92cad55f
commit
ff0d4c98ee
4 files changed
+22
-4
No files matched your search
@@ -46,6 +46,13 @@ mod routes;
|
||||
#[global_allocator]
|
||||
static GLOBAL: Jemalloc = Jemalloc;
|
||||
|
||||
#[cfg(all(not(target_env = "msvc"), not(target_os = "macos"), feature = "hardened_malloc", target_os = "linux"))]
|
||||
use hardened_malloc_rs::HardenedMalloc;
|
||||
|
||||
#[cfg(all(not(target_env = "msvc"), not(target_os = "macos"), feature = "hardened_malloc", target_os = "linux"))]
|
||||
#[global_allocator]
|
||||
static GLOBAL: HardenedMalloc = HardenedMalloc;
|
||||
|
||||
struct Server {
|
||||
config: Config,
|
||||
|
||||
|
||||
Reference in new issue
Block a user