diff options
author | Andy Hayden <andyhayden1@gmail.com> | 2019-01-13 22:30:38 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-01-14 22:30:04 +0100 |
commit | 526fdac053f125b641b07b78b81ffa9962622e09 (patch) | |
tree | ec884949a6b43c109a4509de21f6f6a10d15ef38 /build_extra/rust/rust.gni | |
parent | 7d08db2191526524bf9a7a45b97952c533a6aa74 (diff) |
Update to rust 2018 edition
Diffstat (limited to 'build_extra/rust/rust.gni')
-rw-r--r-- | build_extra/rust/rust.gni | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni index 60b33d610..c9434be6d 100644 --- a/build_extra/rust/rust.gni +++ b/build_extra/rust/rust.gni @@ -50,6 +50,7 @@ template("rust_crate") { "crate_type", "crate_version", "deps", + "edition", "inputs", "features", "is_test", @@ -68,6 +69,9 @@ template("rust_crate") { if (!defined(deps)) { deps = [] } + if (!defined(edition)) { + edition = "2018" + } if (!defined(is_test)) { is_test = false } @@ -175,6 +179,7 @@ template("rust_crate") { "--crate-name=$crate_name", "--crate-type=$crate_type", "--emit=$emit_type,dep-info", + "--edition=$edition", "--out-dir=" + rebase_path(out_dir, root_build_dir), # This is to disambiguate multiple versions of the same crate. |