News for hackers. Stuff that matters.
Re:Linus Torvalds on Rust support in kernel by bonzini on Friday April 16, 2021 @06:33PM (#26839796)
Is 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?
Re:Linus Torvalds on Rust support in kernel by myrrlyn on Saturday April 17, 2021 @01:33PM (#26845923)
a 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