distributable:
  url: https://github.com/fcsonline/drill/archive/refs/tags/{{ version.tag }}.tar.gz
  strip-components: 1

provides:
  - bin/drill

versions:
  github: fcsonline/drill

dependencies:
  openssl.org: ^1.1

build:
  dependencies:
    rust-lang.org: '>=1.56'
    rust-lang.org/cargo: '*'
  script: cargo install --path . --root {{prefix}}

test:
  - test "$(drill --version)" = "drill {{version}}"
  - run: drill --benchmark $FIXTURE --stats
    fixture:
      extname: yml
      content: |
        ---

        concurrency: 4
        base: 'http://pkgx.sh'
        iterations: 5
        rampup: 2

        plan:
          - name: Fetch root
            request:
              url: /
