Skip to content

Rust language edition and version related refactorings#489

Open
SaelKimberly wants to merge 20 commits into
eycorsican:masterfrom
SaelKimberly:code-upgrade-2024
Open

Rust language edition and version related refactorings#489
SaelKimberly wants to merge 20 commits into
eycorsican:masterfrom
SaelKimberly:code-upgrade-2024

Conversation

@SaelKimberly

Copy link
Copy Markdown

Hello!

I've refactored the Rust code related to language versions and editions, primarily using cargo fix --edition, cargo fix, cargo fmt, and cargo clippy --fix. Some parts of the code were manually refactored to eliminate edition-related incompatibilities. I also removed the dependency on lazy-static, replacing it with LazyLock (from the standard library).

Furthermore, I've locked the Rust edition and version at the workspace level for easier maintenance.

All tests seem to work as expected, and the CLI binary compiles successfully.

This is a truly great project, and I hope my contribution is helpful!

@SaelKimberly

Copy link
Copy Markdown
Author

Oh, got it. I missed the code related to the windows platform. I'll fix it tomorrow.

@SaelKimberly

Copy link
Copy Markdown
Author

Just fixed. How I missed that?(

Also, add some commits, which, I think, could easily be reverted, if have a blocking issues in them. Updated "async-ffi" dep, add "rust-toolchain.toml" file, based on existing github CI builds, and set "resolver" to "3" (preventing MSRV-related build errors). Other changes are clippy lint fixes or cosmetic changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant