Giter Site home page Giter Site logo

docker-rust-esp's Introduction

docker-rust-esp

Provides a Dockerfile defining a Rust build environment for the ESP32 and ESP8266. Builds LLVM and Rust with support for the Xtensa ISA.

For more information on the Xtensa Rust toolchain, refer to the following repositories:
https://github.com/esp-rs/rust
https://github.com/MabezDev/xtensa-rust-quickstart

Building

Ensure that Docker is installed on your system. At least 4GB of RAM (6GB+ recommended) should be available to the container; too little memory can cause the build to fail. Note that this process can be lengthy, potentially taking hours depending on your hardware. Please be patient.

To build the image (tagging it with the name rust-esp):

$ git clone https://github.com/esp-rs/docker-rust-esp.git
$ cd docker-rust-esp/
$ docker build -t rust-esp .

Usage

Once the image has been built, from the root directory of your project (ie. that containing Cargo.toml), run:

$ docker run -v $PWD:/project --rm rust-esp

This will build the application using xargo in release mode, targeting the architecture specified in your .cargo/config file.

https://github.com/japaric/xargo

Alternatively if you would prefer an interactive session:

$ docker run -v $PWD:/project -it --rm rust-esp /bin/bash

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.