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

Define native word size as constant_time::Word. #2097

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Define native word size as constant_time::Word. #2097

merged 1 commit into from
Jun 12, 2024

Conversation

briansmith
Copy link
Owner

No description provided.

@briansmith briansmith self-assigned this Jun 12, 2024
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 97.23%. Comparing base (731f419) to head (e8944f7).
Report is 1 commits behind head on main.

Files Patch % Lines
src/polyfill.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2097      +/-   ##
==========================================
- Coverage   97.25%   97.23%   -0.02%     
==========================================
  Files         143      143              
  Lines       20052    20055       +3     
  Branches      228      228              
==========================================
- Hits        19502    19501       -1     
- Misses        524      527       +3     
- Partials       26       27       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@briansmith briansmith merged commit e88750b into main Jun 12, 2024
148 of 150 checks passed
@briansmith briansmith deleted the b/word branch June 12, 2024 03:28
@@ -21,34 +21,20 @@
use crate::{c, error, polyfill::ArrayFlatMap};

#[cfg(any(test, feature = "alloc"))]
use crate::bits;
use crate::{bits, constant_time, polyfill::usize_from_u32};
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey! When building without "alloc" feature (common when using default-features = false) the below pub const LIMB_BITS: usize = usize_from_u32(Limb::BITS); tries to use this feature = "alloc"-guarded import and fails to compile, is that intended?

Copy link
Contributor

Choose a reason for hiding this comment

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

Pushed a fix in #2214 👍

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