From 32836d4809d5fc00f8b76e4b5459d3f0406ee58c Mon Sep 17 00:00:00 2001 From: Wyatt Date: Sun, 14 Jan 2024 11:48:41 -0800 Subject: [PATCH] bundled --- Cargo.lock | 9 +++++++++ Cargo.toml | 2 +- Dockerfile | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index f4b834de..6c81a3de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4539,6 +4539,15 @@ name = "tcmalloc" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "375205113d84a1c5eeed67beaa0ce08e41be1a9d5acc3425ad2381fddd9d819b" +dependencies = [ + "tcmalloc-sys", +] + +[[package]] +name = "tcmalloc-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b7ad73e635dd232c2c2106d59269f59a61de421cc6b95252d2d932094ff1f40" [[package]] name = "tempfile" diff --git a/Cargo.toml b/Cargo.toml index 4f0b18ae..c75ea4d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,7 +109,7 @@ derive-new = "0.6.0" rust_iso3166 = "0.1.11" -tcmalloc = {version = "0.3.0", optional = true} +tcmalloc = {version = "0.3.0", optional = true, features = ["bundled"]} [dev-dependencies] actix-http = "3.4.0" diff --git a/Dockerfile b/Dockerfile index 3692256f..a2787112 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates \ && apt-get install -y google-perftools libgoogle-perftools-dev libtcmalloc-minimal4 \ && ln -s /usr/lib/x86_64-linux-gnu/libtcmalloc.so /usr/lib/libtcmalloc.so \ + && apt-get install -y autoconf \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*