-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: capture OpenSSL and glibc version in build information #2015
Conversation
Add compile-time detection of OpenSSL and glibc versions to the build information. This enhancement provides additional system context by retrieving and exposing the versions of these critical libraries during the build process.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Enhance version parsing for system libraries by extracting only the version number from command outputs. Specifically: - Modify OpenSSL version extraction to capture just the version number - Refine glibc version parsing to remove the "ldd (GNU libc)" prefix
Final benchmark: Git Info:
Configuration:
RPS Stats: Max: 1958.00, Min: 1279.00, Avg: 1664.76, StdDev: 158.29 Plot: View Plot |
User description
Add compile-time detection of OpenSSL and glibc versions to the build information. This enhancement provides additional system context by retrieving and exposing the versions of these critical libraries during the build process.
PR Type
Enhancement
Description
Add OpenSSL version to build information
Capture glibc version for Linux builds
Export new versions as compile-time environment variables
Include new version info in JSON output
Changes walkthrough 📝
build.rs
Capture and export OpenSSL and glibc versions
build.rs
openssl version
commandldd --version
build_info.rs
Add OpenSSL and glibc version constants and JSON output
src/infra/build_info.rs