Have you checked the folders content if Cargo.toml has been copied properly or is in fact missing as the error suggests?
I can only think of 2 reasons for this error, either you made a mistake when copying and the file is missing or you made a mistake when copying and permissions are forbidding the file to be visible at all for cargo.
I'm not able to check on windows, and how cargo behaves there… But when it worked before, did your Path contain spaces as well? If not, can you try again at another place that does not contain spaces?
I do not think I understand. Is E:\Godot example\godot-rust1\examples\spinning_cube\ a project and E:\Godot example\godot-rust1\examples\spinning_cube\Assets\Code\spinning_cube a subproject?
Also, do you have some absolute path in some Cargo.toml?
Yes it was as well as it is the Godot project's folder as well, the cargo.toml file was there as well as the src folder. I moved both the cargo.toml file and the src folder to E:\Godot example\godot-rust1\examples\spinning_cube\Assets\Code\spinning_cube
Do I run this inside E:\Godot example\godot-rust1\examples\spinning_cube\Assets\Code\spinning_cube or in this directory E:\Godot example\godot-rust1\examples\spinning_cube?
The only way I have seen to recreate this error is to give Cargo.toml incorrect permissions. If the file is missing it says to me
error: could not find `Cargo.toml` in `/tmp/cargo-test/movetest/assets` or any parent directory
With bad permissions it says
error: failed to read `/tmp/cargo-test/movetest/assets/code/movetest/Cargo.toml`
So it seems the file is in place, but it cannot be read for whatever reason. I can think of some actions:
To check again the permissions.
Check that it is indeed a file and not some link or something strange. (Although it should work being a software link).
If still failing then move the Cargo.toml outside and make a new file with the same content. Remember the 'C' in Cargo.toml is uppercase. Windows usually ignores case, but it could be relevant.
Certainly I expect many differences with windows. I have not any windows machine available, so I do my best. However, the fact that cargo considers the two situations (missing file or unreadable) to be different, should be true regardless of the platform.