dnsclient 0.2.0

A small, simple and secure DNS client library
Documentation
name: Rust CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust:
          - stable
          - beta
          - nightly
        features:
          - '--features async-tokio'
          - '--features async-smol --no-default-features'
    steps:
    - uses: actions/checkout@v4
    - name: Install Rust ${{ matrix.rust }}
      uses: dtolnay/rust-toolchain@master
      with:
        toolchain: ${{ matrix.rust }}
    - name: Build
      run: cargo build ${{ matrix.features }}
    - name: Run tests
      run: cargo test ${{ matrix.features }}

  compatibility:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust: [stable]
        os: [ubuntu-latest, macos-latest, windows-latest]
    steps:
    - uses: actions/checkout@v4
    - name: Install Rust
      uses: dtolnay/rust-toolchain@master
      with:
        toolchain: ${{ matrix.rust }}
    - name: Build default (tokio)
      run: cargo build
    - name: Build smol backend
      run: cargo build --features async-smol --no-default-features
    - name: Test default (tokio)
      run: cargo test
    - name: Test smol backend 
      run: cargo test --features async-smol --no-default-features