diff options
| author | Arnaud Bailly <arnaud.bailly@iohk.io> | 2024-09-23 10:48:52 +0200 |
|---|---|---|
| committer | Arnaud Bailly <arnaud.bailly@iohk.io> | 2024-09-23 10:48:52 +0200 |
| commit | bc8bf78ea324cb3eb02e3d73c0c516a028ec9215 (patch) | |
| tree | 4f249c0a4c72b9a86e4b2061b25f1143ade52882 /rust | |
| parent | 78e1255d350920c33ebb3469ad3eb95b9c4b0fd4 (diff) | |
| download | lambda-nantes-bc8bf78ea324cb3eb02e3d73c0c516a028ec9215.tar.gz | |
Started Rust interpreter
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/.gitignore | 1 | ||||
| -rw-r--r-- | rust/Cargo.lock | 7 | ||||
| -rw-r--r-- | rust/Cargo.toml | 6 | ||||
| -rw-r--r-- | rust/src/main.rs | 11 |
4 files changed, 25 insertions, 0 deletions
diff --git a/rust/.gitignore b/rust/.gitignore new file mode 100644 index 0000000..2f7896d --- /dev/null +++ b/rust/.gitignore @@ -0,0 +1 @@ +target/ diff --git a/rust/Cargo.lock b/rust/Cargo.lock new file mode 100644 index 0000000..b21cc6a --- /dev/null +++ b/rust/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "rust" +version = "0.1.0" diff --git a/rust/Cargo.toml b/rust/Cargo.toml new file mode 100644 index 0000000..7d75412 --- /dev/null +++ b/rust/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "rust" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/rust/src/main.rs b/rust/src/main.rs new file mode 100644 index 0000000..e9759d6 --- /dev/null +++ b/rust/src/main.rs @@ -0,0 +1,11 @@ +fn main() { + println!("Hello, world!"); +} + +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +} |
