Stream: general

Topic: Memory management in wasm32-unknown-unknown


view this post on Zulip Vibhav Pant (Apr 07 2021 at 06:50):

I'm not sure if this is the correct forum to ask this, but does rustc's wasm32-unknown-unknown target use wee_alloc as the allocator?

view this post on Zulip Jacob Lifshay (Apr 07 2021 at 09:56):

no it does not by default, the default one is dlalloc. See https://github.com/rust-lang/rust/blob/1c158b6a8b440f826d952c3a8f42bdc3f77a5ac1/library/std/src/sys/wasm/alloc.rs

Empowering everyone to build reliable and efficient software. - rust-lang/rust

Last updated: Dec 23 2024 at 13:07 UTC