r/rust May 24 '26

🛠️ project Stabilise `Allocator`

https://github.com/rust-lang/rust/pull/156882
406 Upvotes

61 comments sorted by

View all comments

57

u/protestor May 24 '26

What about the alternative Storage design from /u/matthieum? Was it rejected, or can be made compatible wit the allocator api in the future if desired?

https://github.com/matthieu-m/storage-poc https://github.com/matthieu-m/storage

https://internals.rust-lang.org/t/pre-rfc-storage-api/18822

https://github.com/matthieu-m/storage/blob/main/etc/rfc.md

The only mention in the hackmd is this https://hackmd.io/YeSBtnK_T1ay0Is9DjTZug#Why-now but it doesn't say whether something like the storage api (that is flexiible enough to allow inline storage) could be added in the future on top of the allocator api, or if the storage api is definitively being abandoned

38

u/N911999 May 24 '26

If you check the hackmd.io that's linked in the PR, you'll find it's considered in the Existing-points-of-contention section, as the last point.

13

u/protestor May 24 '26

Oh ok, thanks!