japaric / steed

[INACTIVE] Rust's standard library, free of C dependencies, for Linux systems
519 stars 22 forks source link

Pick a default allocator #114

Open japaric opened 7 years ago

japaric commented 7 years ago

Right now we are hardcoding the allocator in src/lib.rs (e.g. extern crate ralloc). This prevents people from switching the allocator. We should leave that option open by using a default allocator instead.

The mechanism to do that is to create an allocator crate named "alloc_system" and ship that with the sysroot. Where "ship that with the sysroot" means people will have to add that crate to Xargo.toml

We have two options for the default allocator

We don't have to do this right now and we can always change whatever we picked as the default allocator.

P.S. the "alloc_system" name can be changed.