Giter Club home page Giter Club logo

sample-sccache-rust's Introduction

rust + redis sample

Buildless, Rust, Redis and Sccache.

Details about this sample

Together, these tools provide a Rust development environment, enabled with blazing-fast remote build caching. Buildless handles build caching for the app.

Additional resources

Trying the sample

Before you start: Obtain an API key for Buildless, set it at BUILDLESS_APIKEY in your environment Install Sccache Create an environment variable RUSTC_WRAPPER and set it to sccache Create an environment variable SCCACHE_REDIS and set it to rediss://apikey:{YOUR_KEY}@redis.less.build:6379

  1. Clone the sample
  2. Run a build with cargo build; observe that Rust uses Buildless

That's it! Enjoy lightning-fast builds on Rust ๐Ÿ”ฅ

Building and running the app

To build the Rust app:

cargo build --all

To run the Rust app:

cargo run

Using the sample for your own codebase

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:

  1. Update .github/CODEOWNERS
  2. Add a GitHub Secret called BUILDLESS_APIKEY, set to the API key you want to use in CI
  3. That's it!

Sharing an API key across an organization

You can use Organization Secrets to automatically provide a BUILDLESS_APIKEY to all your repos.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.