sgeisler / cargo-remote

cargo subcommand to compile rust projects remotely
MIT License
188 stars 43 forks source link

How to only transfer certain folders (like src) to remote? #4

Open theronic opened 5 years ago

theronic commented 5 years ago

I have a bunch of binary resources in my project folder because reasons, which I don't want to transfer to the remote target. How can I exclude them?

sgeisler commented 5 years ago

Thank you for your interest in this project :) rsync has the --exclude flag which allows you to exclude certain files. You could add a flag to cargo-remote that just passes patterns to exclude. I'd be happy to review and merge such a PR, but as I mentioned in your other issue I'm currently not using cargo-remote myself and won't actively develop it for now. It already excludes target, so you can have a look at that.

theronic commented 5 years ago

Haha "first good issue" :). Yeah, no expectations - I'm opening issues partly as capture-the-flag features (and because I have a bad memory) for future Rustaceans. I did hack some changes together to limit syncing, but not PR-ready.