Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
83 changes: 38 additions & 45 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,60 +7,53 @@ on:
branches: [ master, '[0-9]+.[0-9]+' ]

jobs:
nightly:
name: Nightly, format and Doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Build docs
run: cargo doc --all-features --all --no-deps
- name: Test impl-tools-lib
run: cargo test --manifest-path lib/Cargo.toml --all-features
- name: Test impl-tools
run: cargo test --all-features
test:
name: Test
strategy:
matrix:
include:
- os: ubuntu-latest
toolchain: nightly
variant: docs
- os: macos-latest
toolchain: beta
- os: windows-latest
toolchain: stable
- os: ubuntu-latest
toolchain: "1.70.0"
targets: "--lib --tests"
variant: MSRV

beta:
name: Beta on MacOS
runs-on: macos-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v5
- name: Install toolchain
uses: dtolnay/rust-toolchain@beta
- name: Test impl-tools-lib
run: cargo test --manifest-path lib/Cargo.toml --all-features
- name: Test impl-tools
run: cargo test --all-features
- name: Checkout
uses: actions/checkout@v5

stable:
name: Stable on Windows
runs-on: windows-latest
- name: MSRV
if: ${{ matrix.variant == 'MSRV' }}
run: cp Cargo.lock.msrv Cargo.lock

steps:
- uses: actions/checkout@v5
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- name: Test impl-tools-lib
run: cargo test --manifest-path lib/Cargo.toml --all-features
- name: Test impl-tools
run: cargo test --all-features
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}

msrv:
name: MSRV
runs-on: macos-latest
- name: Build docs
if: ${{ matrix.variant == 'docs' }}
run: cargo doc --all-features --all --no-deps

steps:
- uses: actions/checkout@v5
- name: Install toolchain
uses: dtolnay/rust-toolchain@1.66.0
- name: Use Cargo.lock.msrv
run: cp Cargo.lock.msrv Cargo.lock
- name: Test impl-tools-lib
run: cargo test --manifest-path lib/Cargo.toml --all-features --lib --tests
run: cargo test --manifest-path lib/Cargo.toml --all-features ${{ matrix.targets }}

- name: Test impl-tools
run: cargo test --all-features --lib --tests
run: cargo test --all-features ${{ matrix.targets }}

- name: Test test-cfg
working-directory: tests/test-cfg
run: |
cargo test
cargo test --features feature1

workspace:
runs-on: ubuntu-latest
Expand All @@ -69,7 +62,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
components: rustfmt,clippy
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [0.12.0] — unreleased

- Bump MSRV to 1.70 (#59)
- Let `#[autoimpl(Clone, Debug, Default)]` support `#[cfg]` on struct fields, enum variants and variant fields (#59)
- Let `#[autoimpl(Clone, Debug)]` support `ignore` on named enum fields (#59)
Comment on lines +5 to +9
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing changes shouldn't require a breaking release. Further changes may.


# [0.11.3] (lib only)

- Fix `#[autoimpl(Clone)]` and `#[autoimpl(Hash)]` for non-`Copy` enums (#55, #56)
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[workspace]
members = ["lib"]
members = ["lib", "tests/test-cfg"]

[workspace.package]
authors = ["Diggory Hardy <git@dhardy.name>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/kas-gui/impl-tools"
rust-version = "1.65.0"
rust-version = "1.70.0"
edition = "2021"

[package]
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ For an example of this approach, see [kas-macros](https://github.com/kas-gui/kas
[`ScopeAttr`]: https://docs.rs/impl-tools-lib/latest/impl_tools_lib/trait.ScopeAttr.html


Supported Rust Versions
------------------------------

The MSRV is 1.65.0.


Alternatives
------------

Expand Down
Loading
Loading