-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add --features
argument to cargo shuttle run
#914
Conversation
8b35da9
to
4d8d93b
Compare
It's a good feature request. |
I was going to implement it for deployments as well but couldn't figure out how
Oh, I think it is easily convertable to execute the |
It would probably work to add them as a URL parameter, like But I remembered there is another challenge:
|
#756 has been merged now, so you will have to make some changes. |
Hey @orhun, thanks for getting started on this! Apologies for the delayed review, but we're in the middle of a major refactor of how we build crates and deploy users projects. I think it makes sense to hold off on this until that is all merged. The PR for the builder should be up within a few days! |
4d8d93b
to
ca7a652
Compare
Refactored the code to use the new cargo build mechanism. Let me know if it looks okay! I might provide another PR for the deploy subcommand. |
There was a discussion about this the other day, regarding design of multi-service deploys. |
I see, in that case, what exactly is needed? |
Something like this https://github.com/shuttle-hq/shuttle-examples/pull/61/files |
Unfortunately I'm still not following. I guess I will wait a bit until things stabilize 😅 |
Yeah, with the major deployment rewrite coming up there are a lot of question marks from me as well. |
I'll close this for now @orhun, we can pick it up again when we're implementing the builder, but it will likely take a different shape. |
Description of change
This PR adds
--features
argument torun
subcommand for activating cargo features.See #913 for more detail.
How Has This Been Tested (if applicable)?
I ran it locally, worked fine.