Skip to content

Fix building capybarakv on Linux without PMDK #23

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

zeldovich
Copy link
Collaborator

Building on Linux without PMDK requires disabling the "pmem" feature in deps_hack, which requires using "default-features = false" for that dependency. The capybarakv "pmem" feature (enabled by default) does explicitly enable the deps_hack "pmem" feature, so everything still works the same by default (requiring PMDK), but now "cargo build --no-default-features" and "cargo test --no-default-features" in capybarakv work even if PMDK is not installed.

Building on Linux without PMDK requires disabling the "pmem" feature
in deps_hack, which requires using "default-features = false" for that
dependency.  The capybarakv "pmem" feature (enabled by default) does
explicitly enable the deps_hack "pmem" feature, so everything still
works the same by default (requiring PMDK), but now "cargo build
--no-default-features" and "cargo test --no-default-features" in
capybarakv work even if PMDK is not installed.
@hayley-leblanc
Copy link
Collaborator

Thanks, Nickolai! I'll try to test this soon so we can merge it.

@zeldovich zeldovich merged commit 5780b8e into microsoft:main Jun 2, 2025
1 check passed
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.

2 participants