Skip to content

Commit

Permalink
Use Rust 2021 Edition in abscissa new (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shella authored Sep 21, 2023
1 parent 99f3f56 commit 31bdced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/src/commands/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl NewCommand {
let description = title.clone();

// TODO(tarcieri): configurable edition
let edition = properties::rust::Edition::Rust2018;
let edition = properties::rust::Edition::Rust2021;

let patch_crates_io = self.patch_crates_io.clone();

Expand Down
8 changes: 4 additions & 4 deletions cli/src/properties/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use serde::{Deserialize, Serialize};

/// Rust edition used by the application (2018+)
/// Rust edition used by the application (2021+)
#[derive(Copy, Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum Edition {
/// Rust 2018 edition (minimum supported by Abscissa)
#[serde(rename = "2018")]
Rust2018,
/// Rust 2021 edition (minimum supported by Abscissa)
#[serde(rename = "2021")]
Rust2021,
}

0 comments on commit 31bdced

Please sign in to comment.