Code Monkey home page Code Monkey logo

rust-training-demo's Introduction

Basic Rust training source code

This repository contains examples for several basic rust topics as a workspace.

  • geometry + application: Basic syntax and module system
  • iterators: Writing your own iterator and using the iterator methods from stdlib and itertools
  • patternmatching: Pattern matching and destructuring
  • errorhandling: Error handling in Rust with the eyre crate
  • macros: Example for macros that are not procedural macros
  • multithreading: Using threads in Rust

Usage if you dont have Rust installed

You dont need to have Rust installed. If you have Docker and Visual Studio Code on your machine you can use the Remote - Containers extenstion from Microsoft.

There are two ways to use this extension with this repository:

Clone this repo to your disk, start VS Code, run the Remote-Containers: Open Folder in Container... command from the Command Palette (F1) or quick actions Status bar item, and select the folder where git put this repo (likely the name of the repo i.e. rust-training-demo).

OR

Start VS Code and run Remote-Containers: Clone Repository in Container Volume... from the Command Palette (F1). Enter https://github.com/hniemeyer/rust-training-demo in the input box that appears and press Enter.

This will start a docker container with the code, Rust and appropriate extensions already installed and will open a VS code instance which can interact with the container.

An alternative which does not run on your own computer is opening the repo in https://gitpod.io.

The hdf5 example (folder hdfarray) needs an hdf5 installation on your system. For an Ubuntu system sudo apt-get install libhdf5-dev should install the needed libraries.

Resources to learn Rust

rust-training-demo's People

Contributors

hniemeyer avatar

Stargazers

Daniel Calderón avatar

Watchers

James Cloos avatar  avatar

rust-training-demo's Issues

Devcontainer setup

Docker image for devcontainer plus GitHub action if this makes sense.

ndarray demo

Show capabilities of ndarray crate and mayne linear algebra

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.