Fix wrong usage of Copy
in Clone
when bounds are present
#397
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
build-test: | |
name: Build + Test | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- 1.57.0 | |
- stable | |
- nightly | |
features: | |
- "" | |
- --features safe | |
- --features zeroize | |
- --features zeroize-on-drop | |
- --features safe,zeroize | |
- --features safe,zeroize-on-drop | |
include: | |
- rust: nightly | |
features: --features nightly | |
- rust: nightly | |
features: --features safe,nightly | |
- rust: nightly | |
features: --features nightly,zeroize | |
- rust: nightly | |
features: --features nightly,zeroize-on-drop | |
- rust: nightly | |
features: --all-features | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update Rust | |
run: | | |
rustup toolchain install ${{ matrix.rust }} --profile minimal --allow-downgrade | |
rustup default ${{ matrix.rust }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | |
cargo build --workspace ${{ matrix.features }} | |
- name: Test | |
run: | |
cargo test --workspace ${{ matrix.features }} --all-targets --no-fail-fast | |
- name: Doc Test | |
run: | |
cargo test --workspace ${{ matrix.features }} --doc --no-fail-fast | |
no-std-build: | |
name: no_std Build | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- 1.57.0 | |
- stable | |
- nightly | |
features: | |
- "" | |
- --features safe | |
- --features zeroize | |
- --features zeroize-on-drop | |
- --features safe,zeroize | |
- --features safe,zeroize-on-drop | |
include: | |
- rust: nightly | |
features: --features nightly | |
- rust: nightly | |
features: --features safe,nightly | |
- rust: nightly | |
features: --features nightly,zeroize | |
- rust: nightly | |
features: --features nightly,zeroize-on-drop | |
- rust: nightly | |
features: --all-features | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update Rust | |
run: | | |
rustup toolchain install ${{ matrix.rust }} --target thumbv6m-none-eabi --profile minimal --allow-downgrade | |
rustup default ${{ matrix.rust }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | |
cargo build --target thumbv6m-none-eabi ${{ matrix.features }} -p ensure-no-std | |
minimal-versions: | |
name: Minimal Versions | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- version: 1.57.0 | |
features: safe,zeroize-on-drop | |
- version: stable | |
features: safe,zeroize-on-drop | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update Rust | |
run: | | |
rustup toolchain install ${{ matrix.rust.version }} --profile minimal --allow-downgrade | |
rustup default ${{ matrix.rust.version }} | |
- name: Install nightly Rust | |
run: | |
rustup toolchain install nightly --profile minimal --allow-downgrade | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
working-directory: test-crates/minimal-versions | |
run: | | |
cargo +nightly update -Z minimal-versions | |
cargo build --features ${{ matrix.rust.features }} |