Shuttle: v0.52.0 update
Removal of all legacy shuttle.rs code
This release follows the shutdown of the shuttle.rs platform, and removes all related legacy code (a lot). This brings compilation speedups and more flexibility for upcoming features. Read more below!
New redeploy command
Added shuttle deployment redeploy [deployment_id]
which redeploys the built image of the current/latest (or provided) deployment if available. This allows you to skip the build step if you need to restart your service.
Breaking changes
- Removed all legacy CLI commands and options.
cargo shuttle
now targets shuttle.dev. - Removed all legacy crate APIs and renamed all “beta” crate APIs to replace their previous counterparts
- Removed discontinued crates & resources
- Removed, changed or moved crate features and models, mainly in
shuttle-common
- Bumped postgres version in local provisioner to 16, to match current RDS and shared databases
- Fixed
shuttle run
to use same secrets loading logic asshuttle deploy
, which is more strict, instead of using legacy logic
Other updates
- Upgraded many dependencies (axum, http, hyper, reqwest, etc)
- Due to dependency cleanup, an axum hello-world is now at 210 build steps, down from 279 🥳.
cargo-shuttle
has a similar improvement (if you’re installing from source). - Frameworks are now re-exported by their Shuttle service integration. You can now do, for example,
use shuttle_axum::axum;
. - (Upcoming feature) New
setup-otel-exporter
feature flag in shuttle-runtime for enabling telemetry exporting deployment redeploy
anddeployment stop
now supports--no-follow
and--raw
Contributions
- @kikniknik fixed rocket templates example in shuttle-hq/shuttle-examples#204
- @c-git added docs for running
shuttle run
with live reload usingbacon
in shuttle-hq/shuttle-docs#318 - @christian-alan improved the website navbar in shuttle-hq/www#371
Upgrading
Refer to the upgrading docs for how to upgrade your projects.
What's Changed
- feat: legacy platform force deployment by @jonaro00 in #1957
- feat: re-export supported framework crates by @the-wondersmith in #1956
- feat: user project telemetry by @the-wondersmith in #1961
- refactor: improve values of default otel
Resource
by @the-wondersmith in #1968 - chore: remove legacy code by @jonaro00 in #1962
- feat: upgrade axum,http,hyper,reqwest,tokio by @jonaro00 in #1964
- feat: new scripts for switching api environments by @jonaro00 in #1970
- feat: stabilise redeploy command by @jonaro00 in #1966
- chore: rename all beta models by @jonaro00 in #1969
- chore: use
TelemetryResourceDetector
for telemetry sdk values when creating default resource by @the-wondersmith in #1974 - feat: allow --no-follow and --raw on redeploy and stop by @jonaro00 in #1973
- refa: admin cert command by @jonaro00 in #1971
- feat: project telemetry config models by @jonaro00 in #1972
- chore: v0.52.0 by @jonaro00 in #1975
New Contributors
- @the-wondersmith made their first contribution in #1956
Full Changelog: v0.51.0...v0.52.0