diff --git a/.github/workflows/gift.yml b/.github/workflows/gift.yml new file mode 100644 index 00000000..ba0751d4 --- /dev/null +++ b/.github/workflows/gift.yml @@ -0,0 +1,60 @@ +name: gift + +on: + pull_request: + paths: + - "gift/**" + - "Cargo.*" + push: + branches: master + +defaults: + run: + working-directory: gift + +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-Dwarnings" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.65.0 # MSRV + - stable + target: + - thumbv7em-none-eabi + - wasm32-unknown-unknown + steps: + - uses: actions/checkout@v3 + - uses: RustCrypto/actions/cargo-cache@master + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + targets: ${{ matrix.target }} + - run: cargo build --no-default-features --release --target ${{ matrix.target }} + + minimal-versions: + uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master + with: + working-directory: ${{ github.workflow }} + + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.65.0 # MSRV + - stable + steps: + - uses: actions/checkout@v3 + - uses: RustCrypto/actions/cargo-cache@master + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/gift/Cargo.toml b/gift/Cargo.toml index 658d12ff..33d86dd3 100644 --- a/gift/Cargo.toml +++ b/gift/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.0" description = "Gift block cipher" authors = ["RustCrypto Developers", "Schmid7k"] license = "MIT OR Apache-2.0" -rust-version = "1.56" +rust-version = "1.65" edition = "2021" readme = "README.md" documentation = "https://docs.rs/gift-cipher" diff --git a/gift/README.md b/gift/README.md index 6a9dae6a..e09f9046 100644 --- a/gift/README.md +++ b/gift/README.md @@ -26,7 +26,7 @@ USE AT YOUR OWN RISK! ## Minimum Supported Rust Version -Rust **1.56** or higher. +Rust **1.65** or higher. Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump. @@ -53,18 +53,18 @@ dual licensed as above, without any additional terms or conditions. [//]: # (badges) -[crate-image]: https://img.shields.io/crates/v/gift_cipher.svg -[crate-link]: https://crates.io/crates/gift_cipher -[docs-image]: https://docs.rs/gift_cipher/badge.svg -[docs-link]: https://docs.rs/gift_cipher/ +[crate-image]: https://img.shields.io/crates/v/gift-cipher.svg +[crate-link]: https://crates.io/crates/gift-cipher +[docs-image]: https://docs.rs/gift-cipher/badge.svg +[docs-link]: https://docs.rs/gift-cipher/ [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.56+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.65+-blue.svg [hazmat-image]: https://img.shields.io/badge/crypto-hazmat%E2%9A%A0-red.svg [hazmat-link]: https://github.com/RustCrypto/meta/blob/master/HAZMAT.md [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260039-block-ciphers -[build-image]: https://github.com/RustCrypto/block-ciphers/workflows/gift_cipher/badge.svg?branch=master&event=push -[build-link]: https://github.com/RustCrypto/block-ciphers/actions?query=workflow%3Agift_cipher +[build-image]: https://github.com/RustCrypto/block-ciphers/workflows/gift-cipher/badge.svg?branch=master&event=push +[build-link]: https://github.com/RustCrypto/block-ciphers/actions?query=workflow%3Agift-cipher [//]: # (general links)