pantry/projects/dprint.dev/package.yml

23 lines
443 B
YAML

distributable:
url: https://github.com/dprint/dprint/archive/refs/tags/{{ version }}.tar.gz
strip-components: 1
provides:
- bin/dprint
versions:
github: dprint/dprint
strip: /v/
build:
working-directory: crates/dprint
dependencies:
rust-lang.org: '>=1.65'
rust-lang.org/cargo: '*'
script:
cargo install --locked --path . --root {{prefix}}
test:
script:
- test "$(dprint --version)" = "dprint {{version}}"