Buildless, Rust, Redis and Sccache.
Together, these tools provide a Rust development environment, enabled with blazing-fast remote build caching. Buildless handles build caching for the app.
Before you start: Obtain an API key for Buildless, set it at
BUILDLESS_APIKEY
in your environment Install Sccache Create an environment variableRUSTC_WRAPPER
and set it tosccache
Create an environment variableSCCACHE_REDIS
and set it torediss://apikey:{YOUR_KEY}@redis.less.build:6379
- Clone the sample
- Run a build with
cargo build
; observe that Rust uses Buildless
That's it! Enjoy lightning-fast builds on Rust 🔥
To build the Rust app:
cargo build --all
To run the Rust app:
cargo run
This is a GitHub Template repository; you can easily use it to create your own repo. Follow these steps to customize it for use with your Buildless account:
- Update
.github/CODEOWNERS
- Add a GitHub Secret called
BUILDLESS_APIKEY
, set to the API key you want to use in CI - That's it!
You can use Organization Secrets to automatically provide a BUILDLESS_APIKEY
to all your repos.