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

Error with batch and batch_deterministic feature combo #240

Closed

Conversation

pinkforest
Copy link
Contributor

@pinkforest pinkforest commented Dec 13, 2022

This PR depends on

Currently the error if both are activated is a random one with cfg()'s that didn't expect someone would use both.

Also simplified cfg() in batch.rs

This creates proper error if both are activated.

foobar@foobar-MS-7C77:~/cc/ed25519-dalek$ cargo test --all-features

   Compiling ed25519-dalek v1.0.1 (/home/foobar/cc/ed25519-dalek)
error: Features batch and batch_deterministic are mutually exclusive.
   --> src/lib.rs:236:1
    |
236 | compile_error!("Features batch and batch_deterministic are mutually exclusive.");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@tarcieri
Copy link
Contributor

Is there any reason to keep batch instead of replacing it entirely with batch_deterministic?

@pinkforest
Copy link
Contributor Author

pinkforest commented Dec 13, 2022

to keep rand_core optional I guess ?

Also:

deterministic one is unstable ? - but it also speaks about merlin ? (I didn't investigate deeply yet 🙈 )

EDIT - Oh there is also this thread yes:

So shall I get rid of batch here instead ?

@tarcieri
Copy link
Contributor

I think that’s definitely worth discussing

@pinkforest
Copy link
Contributor Author

Closed in favor of #220 (all sorts of batch fixes) and #235 (compile error)

@pinkforest pinkforest closed this Dec 13, 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.

2 participants