3 ms·
As I understand it, Rust originally had support for garbage collected objects. It was removed because the community avoided it as a general practice to ensure t
by e_y_ 3y ago
As I understand it, Rust originally had support for garbage collected objects. It was removed because the community avoided it as a general practice to ensure that libraries could work without the optional GC runtime, due to its popularity as a systems language.
https://web.archive.org/web/20130607161259/http://pcwalton.github.io/blog/2013/06/02/removing-garbage-collection-from-the-rust-language/ https://web.archive.org/web/20130607161259/http://pcwalton.g...
- 1letterunixname 3y agoYeap. Vec, String, Box, format!, and println! all depend on alloc for heap allocations. If an allocator is provided, alloc can be used in no_std. For format!, there are alternatives such as providing a fixed u8 buffer. It's quite amazing what can be accomplished without alloc.