Skip to content

Commit

Permalink
build: Bump minimum Rust version to 1.56
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Mar 15, 2024
1 parent 4ace74a commit 8a62a5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pool:
steps:
- template: steps/setup-rust.yml
parameters:
version: '1.45.0'
version: '1.56.0'
- template: steps/-build.yml
- template: steps/setup-emacs.yml
- template: steps/-test.yml
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]
- Upgraded to Rust 2021 edition.
- This also raised the minimum supported Rust version to 1.56.
- Added support for Rust's non-zero integer types.

## [0.18.0] - 2021-09-26
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use rustc_version::{version, Version};

fn main() {
let version = version().unwrap();
if version < Version::parse("1.45.0").unwrap() {
eprintln!("emacs-module-rs requires rustc 1.45.0 or newer, got {}", version);
if version < Version::parse("1.56.0").unwrap() {
eprintln!("emacs-module-rs requires rustc 1.56.0 or newer, got {}", version);
exit(1);
}
}

0 comments on commit 8a62a5b

Please sign in to comment.