Rust: Difference between revisions
Jump to navigation
Jump to search
(→Rustup) |
(→Cargo) |
||
Line 31: | Line 31: | ||
To test that you have Rust and Cargo installed, you can run this in your terminal of choice: | To test that you have Rust and Cargo installed, you can run this in your terminal of choice: | ||
'''cargo --version''' | '''cargo --version''' | ||
==References== | |||
{| | |||
| valign="top" | | |||
* [https://plugins.jetbrains.com/plugin/8182-rust Rust » IntelliJ IDEA Plugin] | |||
* [https://www.rust-lang.org/learn/get-started Rust » Getting started] | |||
* [https://www.rust-lang.org/learn Rust » Learn] | |||
* [https://www.rust-lang.org/ Rust » Lang] | |||
| valign="top" | | |||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
| valign="top" | | |||
| valign="top" | | |||
|} |
Revision as of 06:49, 19 August 2022
A language empowering everyone to build reliable and efficient software.
Performance Rust is blazingly fast and memory-efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, and easily integrate with other languages. |
Reliability Rust’s rich type system and ownership model guarantee memory-safety and thread-safety — enabling you to eliminate many classes of bugs at compile-time. |
Productivity Rust has great documentation, a friendly compiler with useful error messages, and top-notch tooling — an integrated package manager and build tool, smart multi-editor support with auto-completion and type inspections, an auto-formatter, and more. |
Rustup
The Rust installer and version management tool
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup update
Cargo
The Rust build tool and package manager. When you install Rustup you’ll also get the latest stable version of the Rust build tool and package manager, also known as Cargo. Cargo does lots of things:
- build your project with cargo build - run your project with cargo run - test your project with cargo test - build documentation for your project with cargo doc - publish a library to crates.io with cargo publish
To test that you have Rust and Cargo installed, you can run this in your terminal of choice: cargo --version
References
| ||