File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 :
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ homepage = "https://github.com/greatscottgadgets/packetry"
1010repository = " https://github.com/greatscottgadgets/packetry"
1111documentation = " https://packetry.readthedocs.io"
1212edition = " 2021"
13- rust-version = " 1.57 "
13+ rust-version = " 1.74 "
1414
1515include = [
1616 " CHANGELOG.md" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Packetry is currently in active development and not yet ready for initial releas
1010
1111Packetry 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
1515You 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
2929Install 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
3939For 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
Original file line number Diff line number Diff line change @@ -94,8 +94,10 @@ static UPDATE_INTERVAL: Duration = Duration::from_millis(10);
9494static UPDATE_LOCK : Mutex < ( ) > = Mutex :: new ( ( ) ) ;
9595
9696thread_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 ) ]
You can’t perform that action at this time.
0 commit comments