Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: update clippy to toolchain 1.84 rules #986

Merged
merged 4 commits into from
Jan 23, 2025
Merged

Conversation

mrLSD
Copy link
Member

@mrLSD mrLSD commented Jan 10, 2025

Description

🛋️ PR updates clippy rules to rutst toolchain 1.84. But rust itself still: 1.81.0. The only reason is near-vm-runner. Also we can't update ro near-vm-runner 0.28 as tests fail with a deserialization error.

Changes

➡️ Updated clippy requirements to rust toolchain 1.84
➡️ Rust toolchain not changed. It's related to near-vm runner v0.27 - it doesn't support a higher Rust version.
➡️ near-vm-runner was not updated to v0.28 as it's still not supported even rust 1.83 (it was tested for aurora-engine toolchains: 1.83, 1.84)
⚠️ clippy div_ceil was enabled, as Engine used own custom div implementation. When was started engine tests with div_ceil it happened to have a gas overflow.

@mrLSD mrLSD self-assigned this Jan 10, 2025
@mrLSD mrLSD marked this pull request as draft January 10, 2025 12:52
@mrLSD mrLSD marked this pull request as ready for review January 10, 2025 20:00
@mrLSD mrLSD changed the title Chore: update toolchain to 1.84 Chore: update clippy to toolchain 1.84 rules Jan 13, 2025
@aleksuss aleksuss added this pull request to the merge queue Jan 23, 2025
Merged via the queue into develop with commit bf555d2 Jan 23, 2025
26 checks passed
@aleksuss aleksuss deleted the chore/rust-1.84 branch January 23, 2025 12:10
aleksuss pushed a commit that referenced this pull request Feb 5, 2025
## Description

🛋️ PR updates clippy rules to `rutst toolchain 1.84`. But rust itself
still: `1.81.0`. The only reason is `near-vm-runner`. Also we can't
update ro `near-vm-runner 0.28` as tests fail with a deserialization
error.

### Changes

➡️  Updated `clippy` requirements to `rust toolchain 1.84`
➡️ Rust toolchain not changed. It's related to `near-vm runner v0.27` -
it doesn't support a higher Rust version.
➡️ `near-vm-runner` was not updated to `v0.28` as it's still not
supported even `rust 1.83` (it was tested for aurora-engine toolchains:
`1.83`, `1.84`)
⚠️ clippy `div_ceil` was enabled, as `Engine` used own custom `div`
implementation. When was started `engine tests` with `div_ceil` it
happened to have a gas overflow.
@aleksuss aleksuss mentioned this pull request Feb 5, 2025
aleksuss added a commit that referenced this pull request Feb 5, 2025
## [3.8.0] 2025-02-05

### Changes

- Bumped the SputnikVM up to 0.46.1-aurora by [@mrLSD]. ([#966])
- The nightly rust compiler has been replaced with stable by
[@aleksuss]. ([#977])
- Added changes regarding bumping the `primitive-types` crate by
[@mrLSD]. ([#982])
- The code coverage by clippy has been extended by [@aleksuss]. ([#984])
- The code is changed by the clippy suggestions from the toolchain
1.84.0 by [@mrLSD]. ([#986])
- The precompile `exitToNear` now is compatible with the OMNI bridge by
[@aleksuss]. ([#992])

### Fixes

- Added optimisations to the `AccountId` creation methods by
[@aleksuss]. ([#985])
- The `README.md` has been actualized by [@aleksuss]. ([#978])
- Modified CI scripts by [@aleksuss]. ([#969], [#973], [#975], [#976],
[#981])
- Fixed the vulnerability in the `remove_relayer_key` transaction by
[@aleksuss]. ([#972])

[#966]: #966
[#969]: #969
[#972]: #972
[#973]: #973
[#975]: #975
[#976]: #976
[#977]: #977
[#978]: #978
[#981]: #981
[#982]: #982
[#984]: #984
[#985]: #985
[#986]: #986
[#992]: #992

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: cuibuwei <[email protected]>
Co-authored-by: Evgeny Ukhanov <[email protected]>
Co-authored-by: omahs <[email protected]>
Co-authored-by: Elias Rad <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cuibuwei <[email protected]>
Co-authored-by: NotNotARobot <[email protected]>
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.

3 participants