Coder Social home page Coder Social logo

joeyespo / rust-by-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rust-lang/rust-by-example

0.0 3.0 0.0 2.03 MB

Learn Rust with practical examples

Home Page: http://rustbyexample.github.io/

License: Apache License 2.0

Shell 0.45% Rust 99.55%

rust-by-example's Introduction

Rust by Example

What's this?

This is the source code of the Rust by example website!

How to contribute

An example has a typo, it's outdated, not clear or the information is wrong

Please open an issue explaining the problem, or see below how to modify an example.

I like to see an example about ${topic}

Leave a comment in issue #1.

I want to add/modify an example

You'll need these tools:

Each example has:

  • an id, e.g. hello
  • a title, e.g. Hello World
  • a directory under src, e.g. src/hello
  • an entry in src/order.json, e.g. { "id": "hello", "title": "Hello World" }
  • some source code, e.g. src/hello/hello.rs
  • an input markdown file, e.g. src/hello/input.md

Take a look at the source code of the Hello World example as a reference.

Note that the markdown doesn't need to copy the rust code, instead it just has to reference the filename of the rust code, as in {hello.rs}.

make will merge input.md and the rust code into a README.md file located under output/examples/${id}, AND generate the SUMMARY.md of the book, which lists the examples in the same order they appear in order.json.

make serve will publish the book under localhost:4000, there you can check that the example looks correct.

make test will compile all the examples and point out compiler errors if any.

After checking that the changes look correct, you can send a pull request.

Note: If you're working in a new example, it would be extreme helpful to open an issue mentioning on which topic you are working on, to let other people know which topics are being worked on.

License

Rust by example is dual licensed under the Apache 2.0 license and the MIT license.

See LICENSE-APACHE and LICENSE-MIT for more details.

rust-by-example's People

Contributors

joeyespo avatar natepisarski avatar robinst avatar rossmurray avatar ustcscgy avatar

Watchers

 avatar  avatar  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.