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

Impl num traits #18

Merged
merged 4 commits into from
Dec 26, 2023
Merged

Impl num traits #18

merged 4 commits into from
Dec 26, 2023

Conversation

tdelabro
Copy link
Collaborator

resolves #7

What is the new behavior?

num_traits::{Inv, Pow, One, Zero} are implemented on Felt
They exist behind a feature flag. So if you don't need them, you can build the crate without.

Does this introduce a breaking change?

No

Other information

@0xLucqs
Copy link
Collaborator

0xLucqs commented Dec 20, 2023

rebase

@tdelabro
Copy link
Collaborator Author

@Oppen I also added a commit to fix the way the alloc feature was used. It was a bit weird, potentially a bug

Copy link
Collaborator

@0xLucqs 0xLucqs left a comment

Choose a reason for hiding this comment

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

otherwise lgtm

crates/starknet-types-core/src/felt/mod.rs Show resolved Hide resolved
crates/starknet-types-core/src/felt/mod.rs Show resolved Hide resolved
@0xLucqs 0xLucqs merged commit c7cf22e into starknet-io:main Dec 26, 2023
2 checks passed
@tdelabro tdelabro deleted the impl-num-traits branch December 26, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dev: impl more num-traits traits
3 participants