From 99a4bd6a812e9f488c24d912c781b6913b7eab7d Mon Sep 17 00:00:00 2001 From: Ben Wishovich Date: Mon, 18 Aug 2025 18:19:28 -0700 Subject: [PATCH] Update leptos_dx.md --- src/getting_started/leptos_dx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getting_started/leptos_dx.md b/src/getting_started/leptos_dx.md index 19e8cba..fca6542 100644 --- a/src/getting_started/leptos_dx.md +++ b/src/getting_started/leptos_dx.md @@ -196,7 +196,7 @@ Just note that it's recommended to set up your editor with `leptosfmt` on a per- Leptos 0.7 made a number of changes to the renderer that relied more heavily on the type system. For larger projects, this can lead to slower compile times. Most of the slowdown in compile times can be alleviated by using the custom configuration flag `--cfg=erase_components` during development. (This erases some of that type information to reduce the amount of work done and debug info emitted by the compiler, at the expense of additional binary size and runtime cost, so it’s best not to use it in release mode.) -As of cargo-leptos v0.2.40, this is automatically enabled for you in development mode. If you are using trunk, not using cargo-leptos, you can set this easily in the command line (`RUSTFLAGS="--cfg erase_components" trunk serve` or `RUSTFLAGS="--cfg erase_components" cargo leptos watch`), or in your `.cargo/config.toml`: +As of cargo-leptos v0.2.40, this is automatically enabled for you in development mode. If you are using trunk, not using cargo-leptos, or want to enable it for non-dev uses, you can set this easily in the command line (`RUSTFLAGS="--cfg erase_components" trunk serve` or `RUSTFLAGS="--cfg erase_components" cargo leptos watch`), or in your `.cargo/config.toml`: ```toml # use your own native target [target.aarch64-apple-darwin]