4 ms·
Yes, don't use the std lib (or more specifically the alloc crate) and don't use types like floats and u128.
by nickez 5y ago
Yes, don't use the std lib (or more specifically the alloc crate) and don't use types like floats and u128.
- bonzini 5y agoIs it possible to use Box (which is special cased in many places in the language and thus cannot be replaced, unlike for example Arc) without the alloc crate?
- myrrlyn 5y agoa replacement to `alloc` would define a `Box` structure and tag it as `#[lang = "box"]` but not define any crashy APIs. this would accomplish the goal, but is an annoying patch that `alloc` should work to obviate upstream