Git Product home page Git Product logo

rust-examples's Introduction

Rust Examples

Collection of examples in Rust to show how to get things done in an idiomatic way

Installing

You need to have Rust v1.34.0 or higher installed to run the examples.

Some examples depend on external crates from crates.io, but everything is taken care of by cargo, so you don't need to perform any additional steps. Just clone the repository, using the following commands, and you are good to go.

$ git clone https://github.com/umut-sahin/rust-examples.git
$ cd rust-examples

Building

You can use the following command to build every single example.

$ cargo build --all

Note that with this command cargo will download and compile every additional package for every example. So it may take some time.

Running a specific example

$ cargo run -q --package <example-name>

Also, you can pass arguments like so

$ cargo run -q --package <example-name> -- [arguments...]

Note that there are some examples, which are in the form of a library, therefore, does not come with an executable. For those examples, you may use the test command like so

$ cargo test -q --package <example-name>

Available examples

Changelog

See CHANGELOG.

License

This repository is released under MIT license. Please see LICENSE for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING for guidance.

Authors

See AUTHORS.

rust-examples's People

Contributors

umut-sahin 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.