4 ms·
More accurately for a lot of languages you can’t make them allocation free. Rust put all of the parts of the standard library that allocate in one crate, called
by cormacrelf 4y ago
More accurately for a lot of languages you can’t make them allocation free. Rust put all of the parts of the standard library that allocate in one crate, called alloc, and that crate is optional (but included in std, so opt-out). Platforms that don’t have an allocator don’t have the alloc crate. So you are forced to select dependencies like this one that will compile without it.
Language features like pattern matching are not affected.This is about standard library features. You don’t get Vec or String without the alloc crate.