sunfishcode / mustang

Rust programs written entirely in Rust
Other
849 stars 24 forks source link

Remove mustang's `global_allocator`. #234

Closed sunfishcode closed 1 year ago

sunfishcode commented 1 year ago

Switch to c-scape's malloc-via-crates mode, in which c-scape provides malloc using rustix-dlmalloc directly, and Rust defaults to using malloc.

This removes mustang's features for different allocators, but it adds the ability for Mustang users to install their own allocators using the normal #[global_allocator] mechanism.