Skip to content

Commit

Permalink
fix: downgrade MSRV to 1.77.2 to support Windows 7 (#11205)
Browse files Browse the repository at this point in the history
* fix: downgrade MSRV to 1.77.2 to support Windows 7

* add chang file
  • Loading branch information
lucasfernog authored Oct 3, 2024
1 parent 983e780 commit 0ab2b33
Show file tree
Hide file tree
Showing 19 changed files with 65 additions and 37 deletions.
16 changes: 16 additions & 0 deletions .changes/msrv-1.77.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"tauri": patch:changes
"tauri-utils": patch:changes
"tauri-runtime": patch:changes
"tauri-runtime-wry": patch:changes
"tauri-codegen": patch:changes
"tauri-macros": patch:changes
"tauri-plugin": patch:changes
"tauri-build": patch:changes
"tauri-cli": patch:changes
"tauri-macos-sign": patch:changes
"tauri-bundler": patch:changes
"tauri-driver": patch:changes
---

Downgrade MSRV to 1.77.2 to support Windows.
20 changes: 15 additions & 5 deletions .github/workflows/test-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,35 @@ jobs:
- {
target: x86_64-pc-windows-msvc,
os: windows-latest,
toolchain: '1.78.0',
toolchain: '1.77.2',
cross: false,
command: 'test'
}
- {
target: x86_64-unknown-linux-gnu,
os: ubuntu-latest,
toolchain: '1.78.0',
toolchain: '1.77.2',
cross: false,
command: 'test'
}
- {
target: aarch64-apple-darwin,
os: macos-14,
toolchain: '1.78.0',
toolchain: '1.77.2',
cross: false,
command: 'test'
}
- {
target: aarch64-apple-ios,
os: macos-latest,
toolchain: '1.78.0',
toolchain: '1.77.2',
cross: false,
command: 'build'
}
- {
target: aarch64-linux-android,
os: ubuntu-latest,
toolchain: '1.78.0',
toolchain: '1.77.2',
cross: true,
command: 'build'
}
Expand All @@ -88,6 +88,16 @@ jobs:
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.1 libxdo-dev libayatana-appindicator3-dev
- name: downgrade crates with MSRV conflict
run: |
cargo update -p ravif --precise 0.11.5
cargo update -p aws-config --precise 1.5.5
cargo update -p aws-sdk-ssooidc --precise 1.40.0
cargo update -p aws-sdk-s3 --precise 1.46.0
cargo update -p aws-sdk-sts --precise 1.39.0
cargo update -p aws-sdk-sso --precise 1.39.0
cargo update -p bitstream-io --precise 2.3.0
- uses: Swatinem/rust-cache@v2
with:
prefix-key: v2
Expand Down
34 changes: 18 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repository = "https://github.com/tauri-apps/tauri"
categories = ["gui", "web-programming"]
license = "Apache-2.0 OR MIT"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

# default to small, optimized workspace release binaries
[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tauri_bench"
version = "0.1.0"
authors = ["Tauri Programme within The Commons Conservancy"]
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"
license = "Apache-2.0 OR MIT"
description = "Cross-platform WebView rendering library"
repository = "https://github.com/tauri-apps/wry"
Expand Down
2 changes: 1 addition & 1 deletion bench/tests/cpu_intensive/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "bench_cpu_intensive"
version = "0.1.0"
description = "A very simple Tauri Application"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[build-dependencies]
tauri-build = { path = "../../../../crates/tauri-build", features = [
Expand Down
2 changes: 1 addition & 1 deletion bench/tests/files_transfer/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "bench_files_transfer"
version = "0.1.0"
description = "A very simple Tauri Application"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[build-dependencies]
tauri-build = { path = "../../../../crates/tauri-build", features = [
Expand Down
2 changes: 1 addition & 1 deletion bench/tests/helloworld/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "bench_helloworld"
version = "0.1.0"
description = "A very simple Tauri Application"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[build-dependencies]
tauri-build = { path = "../../../../crates/tauri-build", features = [
Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["bundle", "cargo", "tauri"]
repository = "https://github.com/tauri-apps/tauri"
description = "Wrap rust executables in OS-specific app bundles for Tauri"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"
exclude = ["CHANGELOG.md", "/target", "rustfmt.toml"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tauri-cli"
version = "2.0.0"
authors = ["Tauri Programme within The Commons Conservancy"]
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"
categories = ["gui", "web-programming"]
license = "Apache-2.0 OR MIT"
homepage = "https://tauri.app"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["you"]
license = ""
repository = ""
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-cli/templates/plugin/Cargo.crate-manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
authors = [ "{{ author }}" ]
description = ""
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"
exclude = ["/examples", "/webview-dist", "/webview-src", "/node_modules"]
links = "tauri-plugin-{{ plugin_name }}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["you"]
license = ""
repository = ""
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[lib]
name = "tauri_app_lib"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["you"]
license = ""
repository = ""
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[lib]
name = "tauri_app_lib"
Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-driver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/tauri-apps/tauri"
description = "Webdriver server for Tauri applications"
readme = "README.md"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[dependencies]
anyhow = "1"
Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-macos-sign/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["codesign", "signing", "macos", "ios", "tauri"]
repository = "https://github.com/tauri-apps/tauri"
description = "Code signing utilities for macOS and iOS apps"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[dependencies]
anyhow = "1"
Expand Down
2 changes: 1 addition & 1 deletion examples/api/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "api"
version = "0.1.0"
description = "An example Tauri Application showcasing the api"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"
license = "Apache-2.0 OR MIT"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion examples/file-associations/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tauri-file-associations-demo"
version = "0.1.0"
description = "A Tauri application that associate file types"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[build-dependencies]
tauri-build = { path = "../../../crates/tauri-build", features = ["codegen"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "resources"
version = "0.1.0"
description = "A Tauri application that uses Node.js with app resources"
edition = "2021"
rust-version = "1.78"
rust-version = "1.77.2"

[build-dependencies]
tauri-build = { path = "../../../crates/tauri-build", features = ["codegen"] }
Expand Down

0 comments on commit 0ab2b33

Please sign in to comment.