dlib 0.5.3

Helper macros for handling manually loading optional system libraries.
Documentation
name: Continuous Integration

on:
  push:
    branches:
    - master
  pull_request:

jobs:
  ci:
    strategy:
      fail-fast: false
      matrix:
        rust: ['1.56.0', 'stable', 'beta']
      
    runs-on: ubuntu-latest

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

      - name: Cargo cache
        uses: actions/cache@v5
        with:
          path: ~/.cargo
          key: cargo-${{ matrix.rust }}

      - name: Rust toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: ${{ matrix.rust }}
          override: true

      - name: Downgrade libloading
        if: ${{ matrix.rust == '1.56.0' }}
        run: cargo update -p libloading --precise 0.8.7

      - name: Test link
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --manifest-path dlib-test/Cargo.toml
      
      - name: Test dlopen
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --manifest-path dlib-test/Cargo.toml --features "dlopen"