From 7add0db68e00cd75eed85b2ce9587d5c729a0f73 Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Fri, 16 Nov 2018 10:03:42 -0800 Subject: [PATCH] Disable debug symbols for tests (#135) Our test artifacts end up consuming several GB of disk space, largely due to debug symbols. This can prevent CI from passing, as CI hosts only have about 9G of real estate. By disabling debug symbols, we reduce artifact size by >90% (and total target directory size from 14G to 4G). --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d599ace3e..e66274ffc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -94,3 +94,8 @@ flate2 = { version = "1.0.1", default-features = false, features = ["rust_backen # `tokio-io` is needed for TCP tests, because `tokio::io` doesn't re-export # the `read` function. tokio-io = "0.1.6" + +# Debug symbols end up chewing up several GB of disk space, so better to just +# disable them. +[profile.test] +debug = false