I have one dependency in my project, which, in turn, depends on err-dervie crate version 0.2. But when compling I'm getting error of building err-deriver version 0.1.6, which is somehow cached from git (and it's the only one in cache).
Where to look to fix it?
error[E0433]: failed to resolve: could not find __rt in quote
--> C:\Users\jony.cargo\registry\src\github.com-1ecc6299db9ec823\err-derive-0.1.6\src\lib.rs:145:63
|
145 | fn display_body(s: &synstructure::Structure) -> Optionquote::__rt::TokenStream {
| ^^^^ could not find __rt in quote
error: aborting due to previous error
For more information about this error, try rustc --explain E0433.
error: could not compile err-derive.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
PS C:\Users\jony\projects\vpo-agent> ls C:\Users\jony.cargo\registry\src\
Directory: C:\Users\jony\.cargo\registry\src
Mode LastWriteTime Length Name
d----- 6/10/2020 8:04 AM github.com-1ecc6299db9ec823
I see that Cargo.toml of used crate depends on err-derive = "0.2.0" but in Cargo.lock it's "0.1.6" for whatever reason and I can't figure out what's the source of it...
Looks like that these are the dependencies of err-derive itself and not the crates which depend on err-derive. Could you look through the Cargo.lock to check if someone lists err-derive in its dependencies block?
The "Source" tab on docs.rs is useful for viewing what has actually been published. crates.io does not use GitHub as the source, so GitHub may contain something completely different (this is especially important to keep in mind if you review code for security!)