Coder Social home page Coder Social logo

rust-workshop's Introduction

Welcome to Rust workshop

It consists into a list of "crates" (packaging name in Rust). Your goal is to make test passes using cargo test. You start with 01-basic, and when you're done, go to 02-... and continue this way until the end ! All code to touch are in /src/tests.rs files.

Each crate is documented with few explanations/instructions, so generate all documentation with cargo doc --all and then open it with cargo doc --open !

Before proceeding, you need to install a working environment !

Installing Rust

At the time of writing, the easiest way is to use rustup.

Note: under Windows, you will have to choose between two options. For gnu, you need nothing special ; rustup will automatically install GNU compiler tools. For msvc, you need to install Visual C++ Build Tools 2015 ; click here for more details.

To check your installation, just run cargo run from repository root directory. It should prints

Congrulations !
You have compiled and run your first Rust program

Next, go to '01-basic' and make all tests passes with 'cargo test'

Installing editor

Rust (rls) is currently the recommended extension. It is provided by Rust Developer Tools team (whih also provides Rust Language Server).

There is also Rust but it's not actively developped. In this case, using RLS mode is highly recommanded.

Note: you can also use other IntelliJ-based products. But IntelliJ IDEA has a community version.

IntelliJ Rust is the official plug-ins. Firstly, started as side projects from JetBrains employees. Since summer 2017, it is officially supported by JetBrains.

Others

You can find more supported IDEs at Are we (I)DE yet?.

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.