Okay so this question may sound really silly, but I am using IntelliJ Rust, running on Clion, and I just create my first project/program in Rust. I have multiple computer though, so assuming I want to commit my files on bitbucket, what file/folder structure should I commit, and what should I put into .gitignore.
Anyway, can I have an elegant solution that, say, even if I zip those files/folders and send to another computer which does not have IntelliJ Rust, I can still compile it using rustc, with all the dependency and such in the cargo.toml work. IntelliJ Rust seems to create a bunch of folders, which confused me.
The folder structure is bellow. Thanks in advance.