Rust: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 16: Line 16:


==Rustup==
==Rustup==
The Rust installer and version management tool
  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  rustup update
  rustup update
Line 30: 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'''
==Knowledge==
'''Crustaceans''': An arthropod of the large, mainly aquatic group '''Crustacea''', such as a crab, lobster, shrimp, or barnacl
cargo new --lib '''<library_project_name>'''
cargo new '''<application_name>'''
cargo login -- '''<token>'''
==References==
{|
| valign="top" |
* [https://plugins.jetbrains.com/plugin/8182-rust Rust » IntelliJ IDEA Plugin]
* [https://doc.rust-lang.org/std/ Rust » Standard Library]
* [https://doc.rust-lang.org/stable/embedded-book/ Rust » Embedded Book]
* [https://www.rust-lang.org/learn/get-started Rust » Getting started]
* [https://doc.rust-lang.org/rustdoc/ Rust » Rustdoc Book]
* [https://doc.rust-lang.org/edition-guide/ Rust » Edition Guide]
* [https://doc.rust-lang.org/cargo/ Rust » Cargo Book]
* [https://doc.rust-lang.org/rustc/ Rust » Rustc Book]
* [https://www.rust-lang.org/learn Rust » Learn]
* [https://www.rust-lang.org/ Rust » Lang]
| valign="top" |
* [https://github.com/flosse/rust-web-framework-comparison Rust » Web Framework Comparison]
* [https://actix.rs/docs/getting-started/ Rust » Actix Web» Getting started]
* [https://crates.io/keywords/orm Rust » Cargo » Crates » ORM]
* [https://doc.rust-lang.org/error-index.html Rust » Compiler Error Index]
* [https://rust-cli.github.io/book/ Rust » Command line Book]
* [https://rustwasm.github.io/docs/book/ Rust » WebAssembly Book]
* [https://crates.io/ Rust » Cargo » Crates]
* [https://actix.rs/ Rust » Actix Web]
* [https://rocket.rs/ Rust » Rocket]
* [https://yew.rs/ Rust » Yew]
| valign="top" |
* [https://www.sea-ql.org/SeaORM/docs/generate-entity/expanded-entity-structure/ Rust » ORM » SeaORM » Expanded Entity Structure]
* [https://www.sea-ql.org/SeaORM/docs/generate-entity/entity-structure/ Rust » ORM » SeaORM » Entity Structure]
* [https://www.sea-ql.org/SeaORM/ Rust » ORM » SeaORM]
* [https://diesel.rs/ Rust » ORM » Diesel]
* [https://wiki.mozilla.org/Oxidation Rust » Oxidation]
|-
| colspan="3" |
----
|-
| valign="top" |
* [[JavaScript]]
* [[Bash]]
* [[Swift]]
* [[Java]]
* [[Lua]]
| valign="top" |
| valign="top" |
|}

Latest revision as of 05:52, 7 February 2024

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

Knowledge

Crustaceans: An arthropod of the large, mainly aquatic group Crustacea, such as a crab, lobster, shrimp, or barnacl
cargo new --lib <library_project_name>
cargo new <application_name>
cargo login -- <token>

References