single_executor 0.4.1

Traits for concurrent primitives.
Documentation
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

name: Lints

jobs:
  clippy-stable:
    name: Clippy
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust:
          - stable
        mode:
          - ""
          - --release
        features:
          - ""
          - --features std

    steps:
      - name: Checkout sources
        uses: actions/checkout@v2

      - name: Install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust }}
          override: true
          components: clippy

      - name: Run cargo clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: ${{ matrix.mode }} --no-default-features ${{ matrix.features }} -- -D warnings

  clippy-nightly:
    name: Clippy
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust:
          - nightly
        mode:
          - ""
          - --release
        features:
          - ""
          - --features std

    steps:
      - name: Checkout sources
        uses: actions/checkout@v2

      - name: Install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust }}
          override: true
          components: clippy

      - name: Run cargo clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: ${{ matrix.mode }} --no-default-features --features nightly ${{ matrix.features }} -- -D warnings

  doc:
    name: Doc
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust:
          - stable
          - nightly
        mode:
          - ""
          - --release

    steps:
      - name: Checkout sources
        uses: actions/checkout@v2

      - name: Install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust }}
          override: true
          components: clippy

      - name: Run cargo doc
        uses: actions-rs/cargo@v1
        with:
          command: doc
          args: ${{ matrix.mode }}