crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.45k stars 1.62k forks source link

Getting third-party library versions #13273

Open HertzDevil opened 1 year ago

HertzDevil commented 1 year ago

There are a few ways, not all public, to obtain the runtime versions of the third-party dependencies in the standard library:

Some build-time versions are also available:

YAML.libyaml_version was added because there were behavior changes in libyaml 0.2.1 and the specs had to accommodate for that. For completeless, we should do the same in all other third-party libraries. They should:

HertzDevil commented 1 year ago

Already libxml2 only exposes version information at compile time: https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-xmlversion.html