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

Stable Rust: GitHub Actions & toolchain #1616

Merged
merged 8 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/actions-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

permissions:
checks: write
pull-requests: write

jobs:
contracts:
name: Contracts (nightly)
uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v3.2.0
with:
rust-toolchain: nightly-2023-12-11
path-to-sc-meta: framework/meta
enable-contracts-size-report: false
mx-scenario-go-version: v2.1.0-alpha
coverage-args: --ignore-filename-regex='meta/src' --ignore-filename-regex='wasm-adapter' --ignore-filename-regex='benchmarks/' --ignore-filename-regex='tests/' --output ./coverage.md
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Contracts
uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v3.1.0
with:
rust-toolchain: nightly-2023-12-11
rust-toolchain: stable
path-to-sc-meta: framework/meta
mx-scenario-go-version: v2.1.0-alpha
coverage-args: --ignore-filename-regex='meta/src' --ignore-filename-regex='wasm-adapter' --ignore-filename-regex='benchmarks/' --ignore-filename-regex='tests/' --output ./coverage.md
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lldb-formatter-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable

- name: Download vscode-lldb
uses: robinraju/release-downloader@v1.5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable
target: wasm32-unknown-unknown

- name: Setup the PATH variable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template-test-current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable
target: wasm32-unknown-unknown

- name: Install prerequisites
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template-test-released.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable
target: wasm32-unknown-unknown

- name: Install prerequisites
Expand Down
1 change: 1 addition & 0 deletions data/codec/tests/derive_struct_with_generic_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use codec::{
// to test, run the following command in the crate folder:
// cargo expand --test struct_with_generic_derive_test > expanded.rs

#[allow(dead_code)]
trait SimpleTrait {
fn simple_function(&self);
}
Expand Down
6 changes: 0 additions & 6 deletions framework/base/src/types/managed/wrapped/managed_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::{
codec::{
DecodeError, DecodeErrorHandler, EncodeErrorHandler, NestedDecode, NestedDecodeInput,
NestedEncode, NestedEncodeOutput, TopDecode, TopDecodeInput, TopEncode, TopEncodeOutput,
TryStaticCast,
},
formatter::{hex_util::encode_bytes_as_hex, FormatByteReceiver, SCLowerHex},
types::{heap::Address, ManagedBuffer, ManagedByteArray, ManagedType},
Expand Down Expand Up @@ -200,11 +199,6 @@ where
}
}

#[derive(Clone)]
pub(crate) struct ManagedBufferSizeContext(pub usize);

impl TryStaticCast for ManagedBufferSizeContext {}

impl<M> NestedEncode for ManagedAddress<M>
where
M: ManagedTypeApi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}

impl StaticVarApiImpl for VmApiImpl {
#[allow(static_mut_refs)]

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

unknown lint: `static_mut_refs`

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs#L34

warning: unknown lint: `static_mut_refs` --> framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs:34:13 | 34 | #[allow(static_mut_refs)] | ^^^^^^^^^^^^^^^ | = note: `#[warn(unknown_lints)]` on by default
Raw output
framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs:34:13:w:warning: unknown lint: `static_mut_refs`
  --> framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs:34:13
   |
34 |     #[allow(static_mut_refs)]
   |             ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unknown_lints)]` on by default


__END__

Check warning on line 34 in framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs#L34

warning: unknown lint: `static_mut_refs` --> framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs:34:13 | 34 | #[allow(static_mut_refs)] | ^^^^^^^^^^^^^^^ | = note: `#[warn(unknown_lints)]` on by default
Raw output
framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs:34:13:w:warning: unknown lint: `static_mut_refs`
  --> framework/wasm-adapter/src/api/managed_types/static_var_api_node.rs:34:13
   |
34 |     #[allow(static_mut_refs)]
   |             ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unknown_lints)]` on by default


__END__
fn with_lockable_static_buffer<R, F: FnOnce(&mut LockableStaticBuffer) -> R>(&self, f: F) -> R {
unsafe { f(&mut STATIC_BUFFER) }
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2023-12-11"
channel = "stable"
Loading