From b8cf0a1ed1141ad1b28491e90068167ca920d43b Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:51:30 +0100 Subject: [PATCH] chore: use codegen-units=1 for small crates (#20558) These 500ms we'll save with this change will surely pay off. Release Notes: - N/A --- Cargo.toml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 38a6822beeec080ff7c0215f34fc353136128faf..ec3813fa9d3bb4a1f7b61311379dd27e2050578d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -562,6 +562,47 @@ rustybuzz = { opt-level = 3 } ttf-parser = { opt-level = 3 } wasmtime-cranelift = { opt-level = 3 } wasmtime = { opt-level = 3 } +# Build single-source-file crates with cg=1 as it helps make `cargo build` of a whole workspace a bit faster +activity_indicator = {codegen-units = 1} +assets = {codegen-units = 1} +breadcrumbs = {codegen-units = 1} +collections = {codegen-units = 1} +command_palette = {codegen-units = 1} +command_palette_hooks = {codegen-units = 1} +dev_server_projects = {codegen-units = 1} +evals = {codegen-units = 1} +extension_cli = {codegen-units = 1} +feature_flags = {codegen-units = 1} +file_icons = {codegen-units = 1} +fsevent = {codegen-units = 1} +image_viewer = {codegen-units = 1} +inline_completion_button = {codegen-units = 1} +install_cli = {codegen-units = 1} +journal = {codegen-units = 1} +menu = {codegen-units = 1} +notifications = {codegen-units = 1} +ollama = {codegen-units = 1} +outline = {codegen-units = 1} +paths = {codegen-units = 1} +prettier = {codegen-units = 1} +project_symbols = {codegen-units = 1} +refineable = {codegen-units = 1} +release_channel = {codegen-units = 1} +reqwest_client = {codegen-units = 1} +rich_text = {codegen-units = 1} +semantic_version = {codegen-units = 1} +session = {codegen-units = 1} +snippet = {codegen-units = 1} +snippets_ui = {codegen-units = 1} +sqlez_macros = {codegen-units = 1} +story = {codegen-units = 1} +supermaven_api = {codegen-units = 1} +telemetry_events = {codegen-units = 1} +theme_selector = {codegen-units = 1} +time_format = {codegen-units = 1} +ui_input = {codegen-units = 1} +vcs_menu = {codegen-units = 1} +zed_actions = {codegen-units = 1} [profile.release] debug = "limited"