Skip to content

v0.14.0

Compare
Choose a tag to compare
@chesedo chesedo released this 12 Apr 15:07
· 21 commits to 59a427e78788e6b1bfb9cf10db7a490239216332 since this release
1db4ae7

shuttle: v0.14.0 update

We're excited to release shuttle v0.14.0! 🚀

Workspace support

We now have full support for cargo workspaces! We have had limited support in the past, where only a workspace where the shuttle project was the root crate was deployable. Following this release, you will be able to have a regular workspace. We will search the workspace for shuttle projects, and in this first iteration we will start all of them for local runs, but only the first one we find for deployments.

We intend to allow starting several services in deployment too. The long term plan is to have one central service that routes to the other services in the project, sharing resources amongst them. Any feedback on what people would like to see in this area is most welcome.

Note: When deploying a workspace where the shuttle service uses shuttle-static-folder, the static folder must be placed in the workspace root.

Changes to the project commands

We have a new project command: cargo shuttle project restart. This command will replace the old flow of project rmproject new to restart a project.

In addition to that, the following cargo shuttle project commands have been renamed:

  • new has been renamed to start
  • rm has been renamed to stop

Their functionality remains the same, they will start and stop your project’s container.

Thanks to @jonaro00 for suggesting, implementing and documenting these changes!

Removing the protoc requirement for cargo-shuttle

We have removed the need for protoc to install cargo-shuttle, but protoc will still be required to build, run and deploy shuttle services. We intend to remove the protoc requirement entirely in the next release.

Bug fixes

  • Fixed a bug where a deployment might return an error due to not waiting on the deployment state to update, thanks @jonaro00! #744
  • Fixed a bug on windows where the path to the static folder was incorrect for local runs: #762
  • Fixed a bug where setting the local_uri for databases would cause deployments to fail: #786

Contributions

Upgrading

To upgrade your shuttle CLI, run: cargo install cargo-shuttle, or if you’re using [cargo-binstall](https://github.com/cargo-bins/cargo-binstall), cargo binstall cargo-shuttle.

If you’d like to upgrade your project container, run the restart project command. This will not delete any databases, and you will keep your project name:

cargo shuttle project restart

Finally, redeploy your shuttle service:

cargo shuttle deploy

Commits for this release

Full Changelog: v0.13.0...v0.14.0