# vim: filetype=yaml sw=2
version: '[% c("var/wasm-bindgen_version") %]'
git_url: https://github.com/cohosh/wasm-bindgen
git_hash: '[% c("var/wasm-bindgen_git_hash") %]'
filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
container:
  use_container: 1

var:
  wasm-bindgen_version: 0.2.86
  wasm-bindgen_git_hash: ecc5ca153cda278bfcebc99c157fb4732eb75e6e
  vendor_hash: 6726afe02232c798cc90f1473e9b28a018a324a41b043d02aebe9a374f0864a6
  vendor_people_tpo_user: cohosh

input_files:
  - project: container-image
  - name: rust
    project: rust
  # `cargo vendor vendor` in the `wasm-bindgen` directory has vendored the sources.
  - name: wasm-bindgen_vendor
    URL: https://people.torproject.org/~[% c('var/vendor_people_tpo_user') %]/tbb_files/wasm-bindgen-vendor-[% c('version') %].tar.gz
    sha256sum: '[% c("var/vendor_hash") %]'

steps:
  cargo_vendor:
    filename: '[% project %]-vendor-[% c("version") %].tar.xz'
    input_files:
      - project: container-image
        pkg_type: build
      - project: rust
        name: rust
        pkg_type: build
