-
Notifications
You must be signed in to change notification settings - Fork 42
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
feature: ark version differentiation #241
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #241 +/- ##
==========================================
- Coverage 83.56% 83.51% -0.06%
==========================================
Files 51 52 +1
Lines 5483 5538 +55
==========================================
+ Hits 4582 4625 +43
- Misses 901 913 +12
☔ View full report in Codecov by Sentry. |
Me neither - I chatted w/ Remco and he was also OK with it.
This changes the feature flag name, does that warrant semver major maybe? Remco said ideally we could do this for all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good w/ me.
@@ -47,7 +47,8 @@ thiserror = "1.0" | |||
# support | |||
alloy-rlp = { version = "0.3", optional = true } | |||
arbitrary = { version = "1", optional = true } | |||
ark-ff = { version = "0.4", optional = true } | |||
ark-ff-04 = { version = "0.4.0", package = "ark-ff", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gg
macro_rules! impl_from_ark { | ||
($ark:ty, $bits:expr, $limbs:expr) => { | ||
impl From<$ark> for Uint<$bits, $limbs> { | ||
fn from(value: $ark) -> Self { | ||
Self::from_limbs(value.0) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Motivation
closes #240
Solution
ark_ff_04.rs
.ark_ff.rs
ark-ff
ark-ff-04
Considerations:
To avoid a backwards-incompatible interface change, the newer ark functionality has the qualified feature-name
ark-ff-04
. This preserves the current released behavior of--feature ark-ff
, but users may not expect new functionality to be behind the more-involved feature flagDon't love the name
ark-ff-04
This PR makes the ark changes semver minor. Previous changes were semver major
PR Checklist