From 74d9db0cbf47274ecd6e4756fbe584c6f7279490 Mon Sep 17 00:00:00 2001 From: Aumetra Weisman <aumetra@cryptolab.net> Date: Mon, 24 Jun 2024 13:26:13 +0200 Subject: [PATCH] Expand mention to suitability of the builder --- src/pages/core/installation.mdx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/pages/core/installation.mdx b/src/pages/core/installation.mdx index 52c839aa..5988a99a 100644 --- a/src/pages/core/installation.mdx +++ b/src/pages/core/installation.mdx @@ -24,6 +24,18 @@ platform. For production builds you probably also want to install [Docker], too. <br /> This is because we offer the [CosmWasm Optimizing Compiler], which uses a Docker image to build the smallest contract possible in a deterministic fashion. + +Please note that this image is _not_ suitable for development or in general +environments where you want to iterate quickly. The builder is optimizing for +size, not compilation speed. If you want to slim down your contract for +development, you can do so by tweaking your Cargo profile. + +```toml +[profile.dev] +lto = "thin" +strip = true +``` + </Callout> After installing Rust, you need to add the WebAssembly target. This is needed so