webpage 2.0.1

Small library to fetch info about a web page: title, description, language, HTTP info, links, RSS feeds, Opengraph, Schema.org, and more
Documentation
name: Build

# read-only repo token
# no access to secrets
on:
  push:
    branches: [ master ]
  pull_request:

env:
  CARGO_TERM_COLOR: always

jobs:
  verify-build:
    runs-on: ubuntu-latest

    steps:
    # checkout repo
    - uses: actions/checkout@v3

    - name: Install rust
      uses: dtolnay/rust-toolchain@stable
      with:
        components: clippy, rustfmt

    - name: Generate Cargo.lock
      run: cargo generate-lockfile

    # restore cargo cache from previous runs
    - name: Rust Cache
      uses: Swatinem/rust-cache@v2
      with:
        # The cache should not be shared between different workflows and jobs.
        shared-key: ${{ github.workflow }}-${{ github.job }}

    # check it builds
    - name: Build
      run: cargo build --locked --verbose --all-targets --all-features

    # run tests
    - name: Run tests
      run: cargo test --verbose --all-features

    # make sure all code has been formatted with rustfmt
    - name: check rustfmt
      run: cargo fmt -- --check --color always

    # run clippy to verify we have no warnings
    - name: cargo clippy
      env:
        RUSTDOCFLAGS: -D warnings
      run: cargo clippy --all-targets --all-features

    # check for rustdoc warnings
    - name: generate and verify rustdoc
      env:
        RUSTDOCFLAGS: -D warnings
      run: cargo doc --no-deps --document-private-items --workspace --all-features