How to configure your Rust project for running on Shuttle
Shuttle.toml
can be used for project-local configuration.
For the current options available, check out Deployment files.
#[shuttle_runtime::main]
macro will be targeted for local runs and deployments.
If Shuttle.toml
or Secrets are used, those files should be placed in the root of the workspace.
This is an example of a workspace structure with shared code between a backend and frontend crate:
shuttle
exists, Shuttle activates it and disables default features.
In this example, Shuttle will enable the features shuttle
and bar
.
To use default features on Shuttle, add default
to the shuttle array.
.shuttle/config.toml
is created when linking your project folder to a Shuttle project.
It is added to .gitignore
by default, and should not be committed.