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

Add necessary cargo features #661

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Add necessary cargo features #661

merged 2 commits into from
Jul 24, 2023

Conversation

philss
Copy link
Member

@philss philss commented Jul 21, 2023

These features are useful to control which NIF version we are going to compile
the project to, and which paths are going to be disabled due to incompatibility
with some targets we support.

This is using most of the work that is present in philss/rustler-precompiled-action#4
But with an additional "cargo-args" that is experimental.

The idea is to avoid building with these features for targets that don't
support them.
These features are useful to control which NIF version we are going to compile
the project to, and which paths are going to be disabled due to incompatibility
with some targets we support.

This is using most of the work that is present in philss/rustler-precompiled-action#4
But with an additional "cargo-args" that is experimental.
@@ -54,6 +55,18 @@ pub fn lf_from_parquet_cloud(
Ok(ExLazyFrame::new(lf))
}

#[cfg(not(feature = "aws"))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to have this optional? Some targets do not support it as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the problem is that object_store has a dependency - called ring - that has some low-level code in C and Assembly which does not compile for RISCV computers. In my research I found that there were some attempts to fix the issue, but they didn't succeed. I was considering keep a fork and try some patches, but I think that would require some great amount of work.

@philss
Copy link
Member Author

philss commented Jul 24, 2023

I'm going to merge this one to fix the build, but I should go back to change the version once I release an official version of the rustler-precompiled-action.

@philss philss marked this pull request as ready for review July 24, 2023 16:14
@philss philss merged commit 3524b57 into main Jul 24, 2023
@philss philss deleted the ps-add-some-features branch July 24, 2023 16:15
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