Skip to content

Commit 7af5d7f

Browse files
authored
Merge pull request #113 from martinling/fix-msrv-test
Bump MSRV to 1.74, and fix MSRV testing in CI.
2 parents 828d667 + 2d24dcd commit 7af5d7f

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/rust.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
os: ['macos-latest', 'ubuntu-22.04', 'windows-latest']
47-
rust: ['stable', '1.57']
47+
rust: ['stable', '1.74']
4848

4949
runs-on: ${{ matrix.os }}
5050

@@ -56,6 +56,7 @@ jobs:
5656
- uses: actions-rs/toolchain@v1
5757
with:
5858
toolchain: ${{ matrix.rust }}
59+
override: true
5960

6061
- uses: awalsh128/cache-apt-pkgs-action@latest
6162
with:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://github.com/greatscottgadgets/packetry"
1010
repository = "https://github.com/greatscottgadgets/packetry"
1111
documentation = "https://packetry.readthedocs.io"
1212
edition = "2021"
13-
rust-version = "1.57"
13+
rust-version = "1.74"
1414

1515
include = [
1616
"CHANGELOG.md",

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Packetry is currently in active development and not yet ready for initial releas
1010

1111
Packetry is written in [Rust](https://rust-lang.org/), with its GUI using [GTK 4](https://gtk.org) via the [gtk-rs](https://gtk-rs.org/) bindings.
1212

13-
To build it, you need a working Rust development environment. The minimum supported Rust version is 1.57.
13+
To build it, you need a working Rust development environment. The minimum supported Rust version is 1.74.
1414

1515
You must also have the GTK 4 headers installed and discoverable via `pkg-config`, as this is required for Rust to build the gtk-rs crates.
1616

@@ -28,7 +28,7 @@ Note: Do not build with `--all-features`. All the optional features currently in
2828

2929
Install the Rust build tools, other essential build tools, and GTK 4 headers.
3030

31-
On Debian based systems it should be sufficient to use the command:
31+
On Debian based systems it may be sufficient to use the command:
3232

3333
`apt install rustc cargo build-essential libgtk-4-dev`
3434

@@ -38,7 +38,7 @@ For Fedora systems:
3838

3939
For other distributions, a similar set of packages should be required.
4040

41-
You can also omit Rust and Cargo and use [rustup](https://rustup.rs/) to get the latest Rust toolchain and manage your Rust installation.
41+
Note that Packetry requires a minimum Rust version of 1.74. If your distribution's packages are older than this, use [rustup](https://rustup.rs/) to get the latest Rust toolchain and manage your Rust installation.
4242

4343
#### macOS
4444

src/ui.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ static UPDATE_INTERVAL: Duration = Duration::from_millis(10);
9494
static UPDATE_LOCK: Mutex<()> = Mutex::new(());
9595

9696
thread_local!(
97-
static WINDOW: RefCell<Option<ApplicationWindow>> = RefCell::new(None);
98-
static UI: RefCell<Option<UserInterface>> = RefCell::new(None);
97+
static WINDOW: RefCell<Option<ApplicationWindow>> =
98+
const { RefCell::new(None) };
99+
static UI: RefCell<Option<UserInterface>> =
100+
const { RefCell::new(None) };
99101
);
100102

101103
#[derive(Copy, Clone, PartialEq)]

0 commit comments

Comments
 (0)