Home

Awesome

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.64.0 and 1.68.0-nightly.

Files

Compile and running it

You will need the version 1.64.0 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.