rust-bio / rust-htslib

This library provides HTSlib bindings and a high level Rust API for reading and writing BAM files.
MIT License
309 stars 80 forks source link

Building conda recipe with rust-htslib as dependency: failure on osx #369

Open wdecoster opened 2 years ago

wdecoster commented 2 years ago

Hi everyone,

I'm quite new to writing Rust - and Cramino is my first Rust tool that I try to get in bioconda. However, it fails to build on osx, and if I am not mistaken this is related to rust-htslib. Does someone here have any insight in what I could try to solve this? The pull request is here https://github.com/bioconda/bioconda-recipes/pull/37648

The traceback/error messages from building on Azure are here: https://dev.azure.com/bioconda/bioconda-recipes/_build/results?buildId=23138&view=logs&j=1b052f1d-4456-52f0-9d43-71c4c5bd734d&t=edc48dcd-1fc2-5e3b-7036-7be9cea00123&l=908

Please let me know if there is a better place to ask.

Thanks in advance,

Wouter

mrvollger commented 2 years ago

I ran into this issue and I don’t know what exactly fixed it but I copied both the recipe and .cargo sub folder from rust bio tools as a template and then it seemed to work for me: https://github.com/rust-bio/rust-bio-tools

My tools that work with rust htslib and bioconda: https://github.com/mrvollger/fibertools-rs https://github.com/mrvollger/rustybam