When moving the folder to the home location - it is work. How can I configure my profile to support SD card location (when I'm navigating to the project dir with cd /mnt/project-dir)
What exactly have you moved to the SD card? Only the directory containing your project's source code or did you copy your Cargo home directory there, too? And what happens if you mount your SD card somewhere in your $HOME directory?
I'm cloning git repository, then running cargo build --release from its root dir.
I suppose that's environment issue, maybe I should add some alias to bash profile because my rust environment is configured by the rustup..
So the cargo home is always located at the default location (~/.cargo)
I can't mount drive with project for now, because it's mounted on system startup. Maybe later I'll try to mount another drive to home, thanks for a tip!
I can't mount to /home for now, but tried to cargo clean + cargo update (by removing /target and Cargo.lock), now I have this error:
cargo build --release
Compiling proc-macro2 v1.0.95
Compiling libc v0.2.174
Compiling pin-project-lite v0.2.16
Compiling bytes v1.10.1
error: failed to run custom build command for `proc-macro2 v1.0.95`
Caused by:
could not execute process `/mnt/sd/build/aquatic-crawler/target/release/build/proc-macro2-1ad64da7dbc8903b/build-script-build` (never executed)
Caused by:
Permission denied (os error 13)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `libc v0.2.174`
Caused by:
could not execute process `/mnt/sd/build/aquatic-crawler/target/release/build/libc-e2233b823a816792/build-script-build` (never executed)
Caused by:
Permission denied (os error 13)
I'm building from the root, as rustup installed for this user, so there is no sense to change permissions, it's something else.
UPD. found related subject, even my FS is ext4 everywhere:
maybe the rw flag in the /etc/fstab not something like x+rw