News for hackers. Stuff that matters.
Re:Rust 2018 is here, but what is it? by Rusky on Thursday December 06, 2018 @04:38PM (#18622519)
For what it's worth you can write 2018-style modules code in 2015 crates (perhaps modulo a few edge cases?). So if you're willing to switch to that you can have one style across both editions.
Re:Rust 2018 is here, but what is it? by steveklabnik on Thursday December 06, 2018 @04:47PM (#18622609)
You can use a 2018 crate from a 2015 crate (and vice versa) but you can’t “expose rust 2015” or something. There’s raw identifiers for anything that would be incompatible. That would require a new rustc, of course.
Re:Rust 2018 is here, but what is it? by Rusky on Sunday December 09, 2018 @04:26PM (#18643390)
I'm... not sure you replied to the right comment here? What I'm talking about is writing 2018-style paths (starting with `crate::`, etc) in a 2015-edition crate, so you don't have to switch between two path styles when you switch between crates.
Re:Rust 2018 is here, but what is it? by steveklabnik on Monday December 10, 2018 @01:56AM (#18645792)
Ah. I just misunderstood what you meant. Sorry!