Skip to content

Fix Windows 7 Builds#17

Merged
peteretelej merged 1 commit into
mainfrom
fix/windows7-build
Jun 7, 2025
Merged

Fix Windows 7 Builds#17
peteretelej merged 1 commit into
mainfrom
fix/windows7-build

Conversation

@peteretelej

@peteretelej peteretelej commented Jun 7, 2025

Copy link
Copy Markdown
Owner

Newer Rust tooling appears to be broken for Windows 7. This appears to have been an intentional deprecation.

As it'll be hard to come up with a maintainable build for this app using newer Rust version, I've pinned Windows builds to use the older Rust 1.75.0.

  • A separate Cargo-win7.lock that uses the old Cargo version
  • removed unneeded dependencies
  • Added static linking of c runtime

Fixes #16

Thanks a lot for filing this @sergeevabc, sorry for the delay! You can grab some binaries to test out from this test run (see Artifacts section at the bottom): https://github.com/peteretelej/tree/actions/runs/15509101323

This may work for other projects facing the same issue but will depend on if dependencies they use need a newer Rust or not.

@peteretelej
peteretelej requested a review from Copilot June 7, 2025 15:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issues with Windows 7 builds by pinning the Rust toolchain to version 1.75.0 and making necessary adjustments in configuration and CI workflows.

  • Introduces a separate Cargo-win7.lock file for Windows 7 uses
  • Removes unneeded dependencies in Cargo.toml
  • Updates GitHub Actions workflows to support static linking for Windows

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

File Description
README.md Adds instructions for Windows 7 support using Rust 1.75.0
Cargo.toml Removes unneeded dependencies and sets Windows-specific rustflags
.github/workflows/test-release.yml Replaces manual build/archive steps with an action, adding static linking via env variables
.github/workflows/release.yml Implements a setup step for Windows 7 lockfile and pins the Rust toolchain version
Comments suppressed due to low confidence (2)

.github/workflows/test-release.yml:46

  • Consider adding a comment to clarify the purpose of the 'dry-run: true' flag in this step, which will help future maintainers understand its intended usage.
dry-run: true

Cargo.toml:20

  • If the dependency 'term' is removed as unneeded, consider documenting the rationale for its removal to ensure that its exclusion doesn't affect existing functionality.
-term = "1.0.2"

@peteretelej peteretelej added the bug Something isn't working label Jun 7, 2025
@peteretelej peteretelej mentioned this pull request Jun 7, 2025
@peteretelej
peteretelej merged commit 354e202 into main Jun 7, 2025
@peteretelej
peteretelej deleted the fix/windows7-build branch June 7, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows 7 build

2 participants