minus 4.0.0-alpha4

An asynchronous paging library for Rust
Documentation
image: "rust:latest"

variables:
  RUST_BACKTRACE: 1
  CARGO_TERM_COLOR: always

default:
  before_script:
    - rustc --version

workflow:
  rules:
    - if: '$CI_COMMIT_REF_NAME == "4.0"'
      when: always
    - when: never

stages:
  - rustfmt
  - build
  - test
  - lint

check-code-fmt:
  stage: rustfmt
  script:
    - rustup component add rustfmt
    - cargo fmt --all -- --check

build-code:
  stage: build
  script:
    - cargo build --verbose --all-features
  
tests:
  stage: test
  script:
    - cargo test --verbose --all-features --no-run
    - cargo test --verbose --all-features

examples:
  stage: test
  script:
    - cargo check --example=dyn_tokio --features=tokio_lib
    - cargo check --example=dyn_async_std --features=async_std_lib
    - cargo check --example=static --features=static_output
    - cargo check --example=static_long --features=static_output

lint-stable:
  stage: lint
  script:
    - rustup component add clippy
    - cargo clippy --all-features --tests --examples

lint-nightly:
  image: "rustlang/rust:nightly"
  stage: lint
  allow_failure: true
  script:
    - rustup component add clippy
    - cargo clippy --all-features --tests --examples