Regarding the new module system and embedded (@japaric): can we have a cfg to enable the core lib in std builds? Motivation:
#![cfg_attr(feature="std", core_with_std)]
#![cfg_attr(not(feature="std"), no_std)]
/// works with and without std:
use core::mem::size_of;
Our current solution, extern crate std as core;, doesn’t work as well when having to prefix crate:: to crate paths (Rust 2018).
Alternatively Cargo may be able to handle this, except I don’t believe it’s possible to add a dependency on the core crate?