Skip to content

cargo install stork-search failing on wasm_bindgen syntax #188

@zerodat

Description

@zerodat

This is a build or install problem that happens on both:

  • cargo 1.51.0 and rustc 1.51.0 on FreeBSD 12.2
  • cargo 1.46.0 and rustc 1.47.0 on Ubuntu 20.04

Trying to install using cargo install stork-search fails with the following error:

error: expected `,`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/stork-search-1.2.1/src/wasm.rs:38:35
   |
38 |     #[wasm_bindgen(js_namespace = console)]
   |                                   ^^^^^^^

error: aborting due to previous error

error: failed to compile `stork-search v1.2.1`, intermediate artifacts can be found at `/tmp/cargo-installRo2nch`

Oddly enough, if I instead clone the stork git repo, checkout v1.2.1, and build with cargo build, it works on both platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    distributionAn issue with the distribution/release of Stork, either for the current release or the broader proce

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions