blachlylab / dhtslib

D bindings and OOP wrappers for htslib
MIT License
7 stars 1 forks source link

Version check warning #120

Open charlesgregory opened 2 years ago

charlesgregory commented 2 years ago

I would be nice if we could have some form of version checking. I built a program with dhtslib-1.13 against htslib-1.10.2 by mistake. Since ABI is still compatible between those htslib versions, program compiled and ran fine. Though it would be nice if we could emit a warning. Would this be possible or even wanted?

jblachly commented 2 years ago

Well, as long as the so version is compatible (as you point out, 1.13 is compat with 1.10, but not 1.9), it should work -- I don't believe any data structures were changed within this ABI version -- and if you use a new symbol or function that was not defined in e.g. 1.10.2, it simply won't link.

That being said, a warning would be nice. don't work too hard on that RN