hello every one I need help!!!!!!
when I run the cargo bootimage in cmd in vs code get this error:
WARNING: CARGO_MANIFEST_DIR
env variable not set Error: Could not find Cargo.toml file starting from current folder: Io(Os { code: 5, kind: PermissionDenied, message: "Access is denied." }) Caused by: 0: An I/O error occurred while trying to execute cargo locate-project
: Access is denied. (os error 5) 1: Access is denied. (os error 5)
but I ran powershell as administrator and the folder has all permissions !!!!!
1 Like
Never execute any rustup/cargo/rustc commands using admin, as it may create files that can't be read or modified later. I suggest doing a cargo clean
as admin, uninstalling any tools you installed with cargo, and the reinstalling rust.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.