From 8b50a9ce6ece2f305e2d00c93ecb033a8a3a47c7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 19 Mar 2022 00:58:32 +0000 Subject: feat(lib): smaller allocator --- Cargo.toml | 3 +++ src/lib.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d87b700..d7c40e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,9 @@ lazy_static = "1.4.0" # Web reqwest = { version = "0.11.9", features = ["json"] } +# Allocator +wee_alloc = "0.4.5" + [build-dependencies] # Build variables vergen = "7.0.0" diff --git a/src/lib.rs b/src/lib.rs index e5661dc..6f86f33 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,6 +27,9 @@ #![deny(clippy::all, clippy::pedantic)] // clippy::nursery #![recursion_limit = "128"] +#[global_allocator] +static ALLOC: wee_alloc::WeeAlloc<'_> = wee_alloc::WeeAlloc::INIT; + mod constants; mod routes; mod structures; -- cgit v1.2.3