Skip to content

Fix: feature gate config and add feature matrix in CI - #43

Merged
frozenspider merged 1 commit into
NethermindEth:mainfrom
RajeshRk18:fix/feature-matrix
Aug 12, 2026
Merged

Fix: feature gate config and add feature matrix in CI#43
frozenspider merged 1 commit into
NethermindEth:mainfrom
RajeshRk18:fix/feature-matrix

Conversation

@RajeshRk18

Copy link
Copy Markdown
Contributor

Context

I started to work on issue #40 but the current build is broken(cargo build --no-default-features). the ci might pass because it runs with all-features flag. It builds fine with default build as well.

Problem

  • Cargo builds a dep with union of the feaures every crate requests. For eg., Debug for syn::Path requires extra-traits feature which is pulled by an arkworks crate. I removed Debug derive anyway from Op because its not needed now. Features are not independent and some of them use dep/feature form. For eg: serde feature pulls crypto-bigint unconditionally.

Fixes

I fixed with conditional dep?/feature. Also added a feature matix in CI which builds with every combination to check if any fails. And some other minor dep fixes

@frozenspider frozenspider left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for your contribution, @RajeshRk18! While I love the idea of this PR and there's a real issue there, although I have some comments about the details. Let me know if you're up for addressing those.

Comment thread src/ring.rs Outdated
Comment thread Cargo.toml Outdated
Comment thread src/field/ark_ff_field.rs
Comment thread src/semiring/crypto_bigint_boxed_uint.rs Outdated
Comment thread src/field.rs Outdated
Comment thread .github/workflows/build-and-test.yml Outdated

@frozenspider frozenspider left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @RajeshRk18!

@frozenspider

Copy link
Copy Markdown
Collaborator

@RajeshRk18, could you please sign your commit and force-push it so I can merge it?

@frozenspider
frozenspider merged commit cea587a into NethermindEth:main Aug 12, 2026
25 of 26 checks 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