roxmltree 0.21.1

Represent an XML as a read-only tree.
Documentation
name: Rust

on: [push, pull_request]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust:
          - 1.60.0
          - stable
    steps:
    - name: Checkout
      uses: actions/checkout@v2

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

    - name: Use MSRV-compatible version of memchr
      run: cargo update --package memchr --precise 2.6.2

    - name: Run tests
      run: cargo test

    - name: Run tests without positions
      run: cargo test --no-default-features --features std

    - name: Build without std
      run: cargo build --no-default-features