Say a Rust 2018 macro defines an async function inside it. The syntax it would use would be incompatible with Rust 2015. So if you're compiling your c ...
Say a Rust 2018 macro defines an async function inside it. The syntax it would use would be incompatible with Rust 2015. So if you're compiling your c ...
I'm writing a small utility for myself that needs to be able to check if a file is a symlink or not. Using FileType::is_symlink on Windows always ret ...
I have an Option that contains some JSON. If it is Some, the inner JSON must be converted, but if it is None, it must remain None. This is how I have ...
I am trying to make a function that consumes Stream and truncate it when there are max_consecutive_fails consecutive fails. However, things didn't wor ...
I want to make asynchronous HTTP requests using the reqwest crate. I have the following code: When I attempt to compile my code I get the following ...
I wrote this simple program: I compiled this with rustc --edition=2018 main.rs and get the error message: error: expected one of `:` or `@`, found ...
With the module system being revamped for the 2018 edition, the functioning of the use keyword has changed. What are the valid paths that can go after ...
I'm working on a project that is utilizing some local modules in folders under src/. I'm currently using Rust 2018 edition and one of the major change ...
Is it possible to read the currently used Rust edition in a build script? Maybe through an environment variable? I tried EDITION and CARGO_EDITION, b ...
As in Rust 2018, we now have raw identifiers: This feature is useful for a few reasons, but the primary motivation was inter-edition situations. ...
I'm experimenting with Rust Edition 2018. In Rust 2015 you use for importing macros. In Rust 2018 extern crate is probably unidiomatic. Is there a ...
I have a crate foo_sys. In Rust 2015 I used extern crate foo_sys as foo for convenience, but in Rust 2018 extern crate isn't needed anymore and I don' ...