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

Add iterable::Reverse. #41

Merged
merged 1 commit into from Apr 8, 2022
Merged

Add iterable::Reverse. #41

merged 1 commit into from Apr 8, 2022

Conversation

mmaker
Copy link
Member

@mmaker mmaker commented Apr 6, 2022

This code comes from arkworks-rs/gemini and is used mostly within tests in order to efficiently provide streams to both time- and space- efficient algorithms and check consistency of the output.

Despite this code is relevant only in testing environments,cfg(test) does not have visibility across libraries.
Therefore, I'm opting for exposing it as public API.
One alternative (maybe in the future?) is to use a new feature flag "test" to expose testing utilities, but feels overkill for this single one.

This code comes from arkworks-rs/gemini and is used mostly within tests
in order to efficiently provide streams to both time- and space- efficient
algorithms in order to check consistency of the output.

Despite this code is relevant only in testing environments,
cfg(test) does not have visibility across libraries.
Therefore, I'm opting for exposing it as public API.
One alternative (maybe in the future?) is to use a new feature flag "test"
to expose testing utilities, but feels overkill for this single one.
@Pratyush Pratyush merged commit 05b7a19 into arkworks-rs:master Apr 8, 2022
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