I had this too. I deleted my cargo.lock file, then tried again and it worked, iirc.
I also had an issue with a windows target for a dependency, which used the wrong path separator. I just changed that in situ and the build worked for windows too. It was a 3rd party library and I didn’t have chance to follow on with it.