Closed mick-supra closed 9 months ago
I'm unable to reproduce this. It's likely a conflict with another dependency in your Cargo.toml. FWIW here's an example Cargo.toml that works for me locally:
[package]
name = "example"
version = "0.1.0"
[dependencies]
ed25519-dalek = { version = "2.0.0", features = ["batch", "digest"] }
However I strongly suspect this is related to #582 and it'd be great if we could get that merged/released @rozbb
I can not reproduce this anymore either???
Wait, try the following:
cargo init example
cd example
cargo add ed25519-dalek@2.0.0 --features batch
cargo add ed25519-dalek@2.0.0 --features digest
If you add them one by one it fails. Deleting the lockfile and adding both simultaneously works. Updating the description.
If anything that sounds like a bug in cargo add
.
A bit more investigation: the problem is the original resolution allowed signature
v2.1.0, but adding digest
currently requires a downgrade from signature
2.1.0 to 2.0.0, which cargo add
refuses to perform.
Closing this as #582 is merged and this isn't really a bug in ed25519-dalek
per se, but a weird edge case of cargo add
Attempting to add the
digest
feature after thebatch
feature fails.Repro:
Output: