docs.rs failed to build shuttle-runtime-0.12.0-rc1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
shuttle-runtime-0.57.0
How to run
The easy way
Both the legacy and next examples can be run using the local client:
When a more fine controlled testing is needed, use the instructions below.
axum-wasm
Compile the wasm axum router:
Run the test:
# or, run tests
Load and run:
In another terminal:
# load
# start
# subscribe to logs
# stop
Curl the service:
shuttle-legacy
This will no longer load a .so file, the code to start the runtime will be
codegened for all services.
An example can be found in src/bin/rocket.rs which contains the secrets rocket example at the bottom and the codegen at the top.
To test, first start a provisioner from the root directory using:
Then in another shell, start the wrapped runtime using the clap CLI:
Or directly (this is the path hardcoded in deployer::start):
# first, make sure the shuttle-runtime binary is built
# then
Then in another shell, load the service and start it up:
# load
# run (this deployment id is default uuid encoded as base64)
# subscribe to logs
# stop (the service started in the legacy runtime can't currently be stopped)
Running the tests
;