All Projects → eliovir → Rust Examples

eliovir / Rust Examples

Licence: mit
Examples from tutorial and other documentations of Rust.

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Rust Examples

Practical Cryptography For Developers Book
Practical Cryptography for Developers: Hashes, MAC, Key Derivation, DHKE, Symmetric and Asymmetric Ciphers, Public Key Cryptosystems, RSA, Elliptic Curves, ECC, secp256k1, ECDH, ECIES, Digital Signatures, ECDSA, EdDSA
Stars: ✭ 2,400 (+1363.41%)
Mutual labels:  tutorial
Pharo Wiki
Wiki related to the Pharo programming language and environment.
Stars: ✭ 161 (-1.83%)
Mutual labels:  tutorial
Haskell Scotty Realworld Example App
Exemplary real world backend API built with Haskell/Scotty https://realworld.io
Stars: ✭ 162 (-1.22%)
Mutual labels:  tutorial
Show Me The Code
Python 练习册,每天一个小程序
Stars: ✭ 12,290 (+7393.9%)
Mutual labels:  tutorial
Reverse Proxy Demo
🛰A demo of how you can easily create a conditional reverse proxy in GO
Stars: ✭ 160 (-2.44%)
Mutual labels:  tutorial
Jupyterhub Tutorial
Tutorial materials for deploying JupyterHub
Stars: ✭ 161 (-1.83%)
Mutual labels:  tutorial
Dippl
The Design and Implementation of Probabilistic Programming Languages
Stars: ✭ 156 (-4.88%)
Mutual labels:  tutorial
Elasticsearch Gmail
Index your Gmail Inbox with Elasticsearch
Stars: ✭ 1,964 (+1097.56%)
Mutual labels:  tutorial
Flask Blueprint Tutorial
📘 📦 Structure your Flask apps in a scalable and intelligent way using Blueprints.
Stars: ✭ 162 (-1.22%)
Mutual labels:  tutorial
Learnpythonforresearch
This repository provides everything you need to get started with Python for (social science) research.
Stars: ✭ 163 (-0.61%)
Mutual labels:  tutorial
Docker Espanol
Un tutorial Docker en español. Basado en el libro Docker Cookbook de O'reilly
Stars: ✭ 158 (-3.66%)
Mutual labels:  tutorial
Matplotlib Tutorial
Matplotlib tutorial for beginner
Stars: ✭ 2,232 (+1260.98%)
Mutual labels:  tutorial
Flask Sqlalchemy Tutorial
🐍 ℹ️ Create and manage data in your Flask app via a SQL database.
Stars: ✭ 162 (-1.22%)
Mutual labels:  tutorial
Gasyori100knock
image processing codes to understand algorithm
Stars: ✭ 1,988 (+1112.2%)
Mutual labels:  tutorial
Js Primer
📖 JavaScript Primer - 迷わないための入門書
Stars: ✭ 2,068 (+1160.98%)
Mutual labels:  tutorial
Boost graph cookbook 1
Boost.Graph Cookbook 1: Basics
Stars: ✭ 157 (-4.27%)
Mutual labels:  tutorial
Django Auth Tutorial
Source code for Django authentication tutorial.
Stars: ✭ 160 (-2.44%)
Mutual labels:  tutorial
Blockchain Tutorial
🌾 A step-by-step blockchain tutorial in simplified Chinese
Stars: ✭ 2,081 (+1168.9%)
Mutual labels:  tutorial
D3tutorial
📊📈 A D3 v6 tutorial - interactive bar chart and multiple coordinated views (MCV)
Stars: ✭ 163 (-0.61%)
Mutual labels:  tutorial
Cmake Tutorial
CMake 官方教程
Stars: ✭ 162 (-1.22%)
Mutual labels:  tutorial

rust-examples Open HUB statistics

Build Status

Rust-examples is a repository to gather example codes from tutorial and other documentations of Rust into files, ready to compile.

Examples are tested with version 1.41.0 and 1.41.0-nightly.

Files

  • Homepage
    • what_it_looks_like.rs, what_it_looks_like2.rs, what_it_looks_like3.rs
  • Old Tutorial, deprecated in favor of the Book
    • 2.1 Compiling your first program: tutorial-02_1-hello.rs
    • 3 Syntax basics: tutorial-03-syntax_basics.rs
    • 4.2 Pattern matching: tutorial-04_2-pattern-matching.rs
    • 4.3 Loops (for, while, loop): tutorial-04_3-loops.rs
    • 5.1 Structs: tutorial-05_1-structs.rs
    • 5.2 Enums: tutorial-05_2-enum.rs
    • 5.3 Tuples: tutorial-05_3-tuples.rs
    • 15 Closures: tutorial-15-closure.rs
    • 16 Methods, with constructor: tutorial-16-methods.rs
    • 17 Generics: tutorial-17-generics.rs
  • Old Rust Threads and Communication Guide, moved into the Rust Programming Language book
    • 2.1 Communication: tutorial-tasks-02_1-communication.rs
    • 2.3 Sharing immutable data without copy: Arc: tutorial-tasks-02_3-arc.rs
  • Book
    • 5.6 Concurrency, threads: book-5-6-threads.rs
  • Doc unit testing, moved into the Rust Programming Language book.
    • Unit testing in Rust: unittests.rs
  • Old Rust Cheatsheet
    • Use Struct to express phantom types: phantom_type.rs
  • API
  • Some new files:
    • Makefile to compile, run tests and run benchmarks
    • .travis.yml to add the repository to Travis CI and Rust CI
    • A library and its unit tests and benchmarks for 2 Fibonacci functions (a reccursive and a non reccursive): fibonacci.rs
    • A struct to manage dates: date.rs
    • Different syntaxes to find the maximum value in a vector: find_max.rs
    • A struct to manage INI files: inifile.rs
    • A script to print TBX entries from CSV terminology: datumbazo2tbx.rs
    • Design pattern Decorator: design_pattern-decorator.rs and design_pattern-decorator2.rs
    • Design pattern Strategy: design_pattern-strategy.rs
    • Design pattern Observer: design_pattern-observer.rs
    • Design pattern Command: design_pattern-command.rs
    • Design pattern Template method: design_pattern-templatemethod.rs
    • Design pattern Chain of Command: design_pattern-chain_of_command.rs
    • Design pattern Visitor: design_pattern-visitor.rs

Compile and running it

You will need the version 1.29.1 of the rust compiler. If you encounter problems, make sure you have the right version before creating an issue.

The simplest way to build rust-examples is to do a clone and use make to compile:

git clone https://github.com/eliovir/rust-examples
cd rust-examples
make

To run tests and benchmarks (benchmarks need Nightly):

make tests
make bench

To get help on commands:

make help

Contributing

  1. Fork it (git clone https://github.com/eliovir/rust-examples)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes, and add tests for them
  4. Test your changes (make test)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Links

other projects have similar goals: providing Rust code snippets:

License

Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

These codes are distributed under the MIT license.

See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].