simd-json 0.7.0

High performance JSON parser based on a port of simdjson
Documentation
name: Tests

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  build:
    strategy:
      matrix:
        os:
          - ubuntu-latest
          - windows-latest
          - macOS-latest
        rustflags:
          - '-C target-cpu=native'
          - '-C target-cpu=native -C target-feature=-avx2'
          - '-C target-cpu=native -C target-feature=-avx2,-pclmulqdq'
        features:
          - '--no-default-features'
          - ''
          - '--features known-key'
          - '--features 128bit'
          - '--features beef'
          - '--features beef,known-key'
          - '--features approx-number-parsing'
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v1
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: stable
        override: true
    - name: Build
      env:
        RUSTFLAGS: ${{ matrix.rustflags }}
      run: cargo build ${{ matrix.features }}
    - name: Run tests
      env:
        RUSTFLAGS: ${{ matrix.rustflags }}
      run: cargo test ${{ matrix.features }}
    - name: Run tests (alloc)
      if: matrix.features == ''
      env:
        RUSTFLAGS: ${{ matrix.rustflags }}
      run: cargo test --features alloc