Open
Description
Describe the problem you are trying to solve
Syntax between Rust 2015 and Rust 2018 is different. Generating code in build.rs
should know what edition of Rust to generate code for.
The code could parse Cargo.toml
to figure this out, but it's cumbersome.
Describe the solution you'd like
An environment variable e.g. RUST_EDITION=2018
would help.