distributable:
  url: https://github.com/koraa/huniq/archive/1d3c47eafb83147ea83594c64ba62b4fbbe3d617.tar.gz
  strip-components: 1

provides:
  - bin/huniq

versions:
  - 2022.12.10
  # FIXME once there has been an official release

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

test:
  script:
    - test "$(huniq --version)" = "huniq 2.7.0"
