diff --git a/.cargo/config.toml b/.cargo/config.toml index 6b77899..6b509f5 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ [build] -target = "wasm32-wasi" +target = "wasm32-wasip1" diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5251954..7c7215e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -30,6 +30,7 @@ jobs: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable + target: wasm32-wasip1 with: components: rustfmt - name: cargo fmt --check @@ -51,6 +52,7 @@ jobs: submodules: true - name: Install ${{ matrix.toolchain }} uses: dtolnay/rust-toolchain@master + target: wasm32-wasip1 with: toolchain: ${{ matrix.toolchain }} components: clippy @@ -68,6 +70,7 @@ jobs: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable + target: wasm32-wasip1 with: components: rustfmt - name: cargo-semver-checks @@ -84,6 +87,7 @@ jobs: submodules: true - name: Install nightly uses: dtolnay/rust-toolchain@nightly + target: wasm32-wasip1 - name: Install cargo-docs-rs uses: dtolnay/install@cargo-docs-rs - name: cargo docs-rs @@ -99,6 +103,7 @@ jobs: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable + target: wasm32-wasip1 - name: cargo install cargo-hack uses: taiki-e/install-action@cargo-hack # intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4 @@ -120,6 +125,7 @@ jobs: submodules: true - name: Install ${{ matrix.msrv }} uses: dtolnay/rust-toolchain@master + target: wasm32-wasip1 with: toolchain: ${{ matrix.msrv }} - name: cargo +${{ matrix.msrv }} check diff --git a/.github/workflows/nostd.yml b/.github/workflows/nostd.yml deleted file mode 100644 index c12227a..0000000 --- a/.github/workflows/nostd.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow checks whether the library is able to run without the std library (e.g., embedded). -# This entire file should be removed if this crate does not support no-std. See check.yml for -# information about how the concurrency cancellation and workflow triggering works -permissions: - contents: read -on: - push: - branches: [main] - pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -name: no-std -jobs: - nostd: - runs-on: ubuntu-latest - name: ${{ matrix.target }} - strategy: - matrix: - target: [thumbv7m-none-eabi, aarch64-unknown-none] - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - name: Install stable - uses: dtolnay/rust-toolchain@stable - - name: rustup target add ${{ matrix.target }} - run: rustup target add ${{ matrix.target }} - - name: cargo check - run: cargo check --target ${{ matrix.target }} --no-default-features diff --git a/.github/workflows/safety.yml b/.github/workflows/safety.yml index 83da574..4afd776 100644 --- a/.github/workflows/safety.yml +++ b/.github/workflows/safety.yml @@ -24,6 +24,7 @@ jobs: submodules: true - name: Install nightly uses: dtolnay/rust-toolchain@nightly + target: wasm32-wasip1 - run: | # to get the symbolizer for debug symbol resolution sudo apt install llvm @@ -62,6 +63,7 @@ jobs: echo "NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)" >> "$GITHUB_ENV" - name: Install ${{ env.NIGHTLY }} uses: dtolnay/rust-toolchain@master + target: wasm32-wasip1 with: toolchain: ${{ env.NIGHTLY }} components: miri @@ -77,6 +79,7 @@ jobs: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable + target: wasm32-wasip1 - name: cargo test --test loom run: cargo test --release --test loom env: diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 02aa275..def76af 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -24,6 +24,7 @@ jobs: submodules: true - name: Install nightly uses: dtolnay/rust-toolchain@nightly + target: wasm32-wasip1 - name: cargo generate-lockfile if: hashFiles('Cargo.lock') == '' run: cargo generate-lockfile @@ -48,6 +49,7 @@ jobs: - name: Install beta if: hashFiles('Cargo.lock') != '' uses: dtolnay/rust-toolchain@beta + target: wasm32-wasip1 - name: cargo update if: hashFiles('Cargo.lock') != '' run: cargo update diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7540ae..2edd76d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,7 @@ jobs: submodules: true - name: Install ${{ matrix.toolchain }} uses: dtolnay/rust-toolchain@master + target: wasm32-wasip1 with: toolchain: ${{ matrix.toolchain }} - name: cargo generate-lockfile @@ -74,8 +75,10 @@ jobs: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable + target: wasm32-wasip1 - name: Install nightly for -Zminimal-versions uses: dtolnay/rust-toolchain@nightly + target: wasm32-wasip1 - name: rustup default stable run: rustup default stable - name: cargo update -Zminimal-versions @@ -102,6 +105,7 @@ jobs: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable + target: wasm32-wasip1 - name: cargo generate-lockfile if: hashFiles('Cargo.lock') == '' run: cargo generate-lockfile @@ -137,6 +141,7 @@ jobs: submodules: true - name: Install stable uses: dtolnay/rust-toolchain@stable + target: wasm32-wasip1 with: components: llvm-tools-preview - name: cargo install cargo-llvm-cov