Skip to content
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

Use compile time detection of what features are available #137

Merged
merged 1 commit into from
Mar 2, 2025

Conversation

randombit
Copy link
Owner

@randombit randombit commented Feb 23, 2025

Previously features were gated on the botan3 feature (which is removed here). This didn't work well in practice as it made it difficult to add support for features added in Botan3 after the 3.0 release.

Add declarations in botan-sys for functions added to ffi.h since 3.0.0, gated on the detected library version. Also add interfaces for some of the new functionality to the high level Rust crate.

@randombit randombit force-pushed the jack/compile-time-version-detect branch 5 times, most recently from 3e57037 to 274a853 Compare February 24, 2025 08:18
@randombit randombit force-pushed the jack/compile-time-version-detect branch 8 times, most recently from c373863 to 46e9412 Compare March 2, 2025 13:36
Previously features were gated on the botan3 feature (which is removed here).
This didn't work well in practice as it made it difficult to add support for
features added in Botan3 after the 3.0 release.

Add declarations in botan-sys for functions added to ffi.h since 3.0.0, gated on
the detected library version. Also add interfaces for some of the new
functionality to the high level Rust crate.
@randombit randombit force-pushed the jack/compile-time-version-detect branch from 46e9412 to af5b75f Compare March 2, 2025 17:32
@randombit randombit merged commit 2d8b6be into master Mar 2, 2025
14 checks passed
@randombit randombit deleted the jack/compile-time-version-detect branch March 2, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant