summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud.bailly@iohk.io>2024-09-23 10:48:52 +0200
committerArnaud Bailly <arnaud.bailly@iohk.io>2024-09-23 10:48:52 +0200
commitbc8bf78ea324cb3eb02e3d73c0c516a028ec9215 (patch)
tree4f249c0a4c72b9a86e4b2061b25f1143ade52882 /rust
parent78e1255d350920c33ebb3469ad3eb95b9c4b0fd4 (diff)
downloadlambda-nantes-bc8bf78ea324cb3eb02e3d73c0c516a028ec9215.tar.gz
Started Rust interpreter
Diffstat (limited to 'rust')
-rw-r--r--rust/.gitignore1
-rw-r--r--rust/Cargo.lock7
-rw-r--r--rust/Cargo.toml6
-rw-r--r--rust/src/main.rs11
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);
+ }
+}