natural-derive 0.4.0

Proc macros for naturally deriving basic trait impls for new types.
Documentation
name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Check out
        uses: actions/checkout@v3

      - name: Install Rust toolchain
        run: |
          rustup update
          rustup toolchain install nightly
          rustup component add rustfmt --toolchain nightly
          rustup component add clippy --toolchain nightly

      - name: Set up cargo cache
        uses: actions/cache@v3
        continue-on-error: false
        with:
          path: |
            ~/.cargo/bin/
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
          restore-keys: ${{ runner.os }}-cargo-

      - name: Check code format (cargo fmt)
        run: cargo +nightly fmt --check

      - name: Lint (cargo clippy)
        run: |
          cargo clippy --no-deps -- -D warnings

      - name: Test (cargo test)
        run: |
          cargo test