Giter Club home page Giter Club logo

rust-env-demo's Introduction

Rust environment demo

This repository contains a demo Rust environment for working on a crate that compiles against libcurl. The repo both builds the crate and provides a development shell.

Build environment

The build environment handles the following details for you:

  • Provides rustc and cargo from the latest Rust release
  • Provides a libcurl to link against so that the crate doesn't need to compile it from source
  • Handles macOS-specific build dependencies

Development shell

The development shell is set up to provide a full Rust development environment including third-party tools. It provides the following features:

  • rust-analyzer, clippy, and rustfmt so that you can integrate them with your IDE for code intelligence and automatic formatting
  • RUST_SRC_PATH environment variable set so that rust-analyzer works properly
  • just and a Justfile for running project-specific commands
  • cargo-watch so that you can run commands automatically on every change to your source code
  • cargo-semver-checks so that you can automatically detect semver-breaking changes
  • cargo-flamegraph so that you can profile the execution of your crate

All of these features are automatically set up for every developer who has flox installed on their machine. A new developer simply needs to clone the repo and flox develop to be dropped into a complete development environment. Spending a week getting your development environment set up is a thing of the past.

rust-env-demo's People

Contributors

zmitchell avatar mkenigs avatar

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.