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

Added num/malachite features for format crate #109

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

h7kanna
Copy link
Contributor

@h7kanna h7kanna commented Dec 15, 2023

To make malachite-bigint optional and num-bigint optin for RustPython format crate needs the features.
Trying to solve for RustPython/RustPython#5130 (comment)

@h7kanna h7kanna force-pushed the fix-num-malachite-features-main branch 2 times, most recently from aa86d62 to a398b11 Compare December 16, 2023 19:03
Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

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

Thank you for contributing! Could you please check if we can go without explicit malachite-bigint and num-bigint features or not?

ast/Cargo.toml Outdated
Comment on lines 19 to 20
malachite-bigint = ["dep:malachite-bigint"]
num-bigint = ["dep:num-bigint"]
Copy link
Member

Choose a reason for hiding this comment

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

Do we need these lines? Isn't an optional dependency name itself a dependency name? Please let me know if I am missing recently changed recommendation or guideline.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right. these are not needed. I will update this and the PR to RustPython as well.

format/src/bigint.rs Show resolved Hide resolved
@h7kanna h7kanna force-pushed the fix-num-malachite-features-main branch from 4efe36b to 2cf5c64 Compare December 27, 2023 18:09
@h7kanna h7kanna force-pushed the fix-num-malachite-features-main branch from 2cf5c64 to 99284e3 Compare December 27, 2023 18:13
@h7kanna
Copy link
Contributor Author

h7kanna commented Dec 27, 2023

Hi @youknowone, Removed the unnecessary features(rebased).
Also tested the latest commit against the RustPython PR.

Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

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

Thank you!

@youknowone youknowone merged commit 8731e9f into RustPython:main Dec 28, 2023
3 checks passed
@h7kanna h7kanna deleted the fix-num-malachite-features-main branch December 28, 2023 04:19
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.

None yet

2 participants