Hello everyone,

Does somebody here have experience with adding Rust tools to Bioconda?

I would like to add [BarcodEX-rs][1] to Bioconda, but unfortunately the build fails. Since there is no dedicated documentation for adding Rust packages and my attempts to copy the recipes from other Rust packages have not been successful (I tried those of *perbase*, *rust-bio-tools* and *fastqc-rs* ), I am somewhat out of ideas how to proceed with troubleshooting. 

Regardless of what I try, [the build fails with][2]:

    error[E0432]: unresolved import
    error[E0433]: failed to resolve. Use of undeclared type or module
    error[E0599]: no function or associated item found for struct in the current scope

However, if I build the tool locally with `cargo build --release` everything works smoothly and all imports are automatically resolved. What peculiarities of the Bioconda build system am I missing? 

[The (somewhat desperate) PR can be found here][3].


  [1]: https://github.com/oicr-gsi/barcodex-rs
  [2]: https://dev.azure.com/bioconda/bioconda-recipes/_build/results?buildId=18640&view=logs&j=e14e69ff-a0ae-55c4-b71d-229b239cfb2f&t=7df82132-b284-504b-53d6-7d3e63519572
  [3]: https://github.com/bioconda/bioconda-recipes/pull/35816/files
It looks like the compiler itself throws many errors (looking e.g. [here](https://dev.azure.com/bioconda/bioconda-recipes/_build/results?buildId=18645&view=logs&jobId=e14e69ff-a0ae-55c4-b71d-229b239cfb2f&j=e14e69ff-a0ae-55c4-b71d-229b239cfb2f&t=7df82132-b284-504b-53d6-7d3e63519572)).  Does it compile for you locally and cleanly on the tagged release you are trying to submit?

**EDIT**: Ok, I just tried locally and the latest tag version seems to build fine.  I assume the issue may have something to do with a many of the changes being made in the `build.sh` file?  Could you try a minimal `build.sh` like [the one we use for `alevin-fry`](https://github.com/bioconda/bioconda-recipes/blob/master/recipes/alevin-fry/build.sh)? 