Skip to content

Commit 1548c3e

Browse files
authored
cargo.toml instead of wrangler.toml (#20791)
1 parent 5f49888 commit 1548c3e

File tree

1 file changed

+0
-4
lines changed
  • src/content/docs/workers/languages/rust

1 file changed

+0
-4
lines changed

src/content/docs/workers/languages/rust/index.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,13 @@ To run the resulting Wasm binary on Workers, `workers-rs` includes a build tool
214214

215215
Unoptimized Rust Wasm binaries can be large and may exceed Worker bundle size limits or experience long startup times. The template project pre-configures several useful size optimizations in your `Cargo.toml` file:
216216

217-
<WranglerConfig>
218-
219217
```toml
220218
[profile.release]
221219
lto = true
222220
strip = true
223221
codegen-units = 1
224222
```
225223

226-
</WranglerConfig>
227-
228224
Finally, `worker-bundle` automatically invokes [`wasm-opt`](https://github.com/brson/wasm-opt-rs) to further optimize binary size before upload.
229225

230226
## Related resources

0 commit comments

Comments
 (0)