You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was discussed on another thread (trying to track it down, but a quick look didn't turn it up) and the plan was to allow adding alloc to the extern list by providing a flag in Cargo.toml that made cargo pass a --extern alloc (with no value for x in --extern alloc=<x>). This would cause the named crates to be included in the extern prelude (if found in the link path).
I believe the change @cramertj mentions is slated to be a post-2018 feature (since there are still design considerations for the cargo side of it). Until then use of extern crate {alloc,test,proc_macro}; are all still needed (only the last is possible on stable, the first two are unstable crates).
Activity
cramertj commentedon Sep 20, 2018
This was discussed on another thread (trying to track it down, but a quick look didn't turn it up) and the plan was to allow adding
allocto the extern list by providing a flag in Cargo.toml that made cargo pass a--extern alloc(with no value forxin--extern alloc=<x>). This would cause the named crates to be included in the extern prelude (if found in the link path).Nemo157 commentedon Sep 21, 2018
I believe the change @cramertj mentions is slated to be a post-2018 feature (since there are still design considerations for the cargo side of it). Until then use of
extern crate {alloc,test,proc_macro};are all still needed (only the last is possible on stable, the first two are unstable crates).Edit: see #54116 (comment) and I think
#53130 (comment) is the most fleshed out comment on how this may look in the future.
petrochenkov commentedon Dec 1, 2018
allocstill requires usingextern crate allocas now documented in https://rust-lang-nursery.github.io/edition-guide/rust-2018/module-system/path-clarity.html