https://github.com/james-see/me-learn-rust
Learning Rust my way
https://github.com/james-see/me-learn-rust
getting-started rust rustlang tutorial tutorial-code
Last synced: 10 months ago
JSON representation
Learning Rust my way
- Host: GitHub
- URL: https://github.com/james-see/me-learn-rust
- Owner: james-see
- License: gpl-3.0
- Created: 2017-04-10T20:28:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T12:18:00.000Z (about 8 years ago)
- Last Synced: 2024-10-12T00:32:20.872Z (over 1 year ago)
- Topics: getting-started, rust, rustlang, tutorial, tutorial-code
- Size: 43.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
``me learn rust learn me``
=============
*Learning Rust my way.*
THINGS TO REMEMBER NOT TO FORGET:
1. Rust uses CARGO to manage builds and running Rust code. Do ``cargo init`` or ``cargo new --bin name_of_project`` for a new project that gets you started quickly and creates a Cargo.toml file. The nice thing is you can just run ``cargo run`` and it will auto-compile any changes.
2. CRATES (https://crates.io) are the packages for Rust. You can search them and use them by added them to the dependencies line in Cargo.toml.
EXAMPLES I WROTE:
~~~~~~~~~~~~~~~~~
1. hello_url - basic use case for urlparse and urljoin functionality in Rust (similar to python urllib.parse)
2. hello_html - basic use case to parse html (get text, get links, etc.)
3. hello_redis - basic use of redis as an example (connect)
4. hello_curl - basic use of tokio curl and curl in rust to collect a web page
5. guessing_game - keep guessing higher or lower to get number match correctly.
6. functions - example of how to use functions
7. loops - example of how to use loops with iter and without
8. variables - example of how to declare and use variables
9. FtoC - convert a random Fahrenheit temp to Celsius.