Conversation
| rand = "0.3.13" | ||
| rpassword = "0.3.0" | ||
| rust-crypto = { git = "https://github.com/awmath/rust-crypto.git", branch = "avx2" } | ||
| rust-crypto = "0.2.36" |
There was a problem hiding this comment.
This needs to be done in every crate, eg core/Cargo.toml.
There was a problem hiding this comment.
slipped my mind, will do that now.
| tremor = { git = "https://github.com/plietar/rust-tremor", optional = true } | ||
| vorbis = { version ="0.1.0", optional = true } | ||
|
|
||
| [replace] |
There was a problem hiding this comment.
These should only be at the root though.
There was a problem hiding this comment.
so [replace] propagates to dependencies?
3a4bb07 to
2349586
Compare
|
Fixed up the history, let me know if anything else needs adjusting. |
|
Should there not be a [replace] statement in every Cargo.toml? |
|
Originally I had that, but Paul says it's only necessary in the root Cargo.toml, presumably it propagates |
|
From https://doc.rust-lang.org/cargo/reference/manifest.html#the-workspace-section
|
|
As I'm using librespot as a library for my own application, would I have to add the [replace] section to my own project's Cargo.toml, though I don't use it in there directly? |
|
@michaelherger I think so. You can try with and without the If the section is correctly defined you should get: Otherwise you just get |
|
Interesting: it's compiling the avx2 branch, without any modification on my end. I'll keep this in mind. Just in case there were unexpected issues. Thanks! |
Implement [Replace] for rust-crypto
Option 5 from #128, usea replace tag to switch to avx2 branch from awmath/rust-crypto. Closes #128