Differences between revisions 2 and 3
Revision 2 as of 2021-09-01 19:48:59
Size: 286
Comment:
Revision 3 as of 2022-05-11 14:01:27
Size: 716
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
== Data Model == == Example ==

A hello world program looks like:

{{{
fn main() {
    println!("Hello World!");
}
}}}

To compile and run the program, try:

{{{
rustc hello.rs
./hello
}}}

It is more common to use `cargo`, which wraps `rustc`. It depends on the project following a standard file structure, and on being in the project's root directory.

{{{
cargo build --release
./hello
# or
cargo run
}}}

----



== Data Types ==

Rust

The Rust programming language is a compiled, static-typed language built on top of the LLVM project.


Example

A hello world program looks like:

fn main() {
    println!("Hello World!");
}

To compile and run the program, try:

rustc hello.rs
./hello

It is more common to use cargo, which wraps rustc. It depends on the project following a standard file structure, and on being in the project's root directory.

cargo build --release
./hello
# or
cargo run


Data Types


CategoryRicottone

Rust (last edited 2023-04-08 13:42:35 by DominicRicottone)