changeset 0:b920a5a8f771

rust tutorial
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 11 Jan 2021 15:02:25 +0900
parents
children eb36163ce10b
files Cargo.toml src/main.rs src/t01guessing/Cargo.toml src/t01guessing/go.mod src/t01guessing/src/main.rs
diffstat 5 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Cargo.toml	Mon Jan 11 15:02:25 2021 +0900
@@ -0,0 +1,9 @@
+[package]
+name = "rust-tutorial"
+version = "0.1.0"
+authors = ["Shinji KONO <kono@ie.u-ryukyu.ac.jp>"]
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main.rs	Mon Jan 11 15:02:25 2021 +0900
@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/t01guessing/Cargo.toml	Mon Jan 11 15:02:25 2021 +0900
@@ -0,0 +1,9 @@
+[package]
+name = "t01guessing"
+version = "0.1.0"
+authors = ["Shinji KONO <kono@ie.u-ryukyu.ac.jp>"]
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/t01guessing/go.mod	Mon Jan 11 15:02:25 2021 +0900
@@ -0,0 +1,1 @@
+module "t01guessing"
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/t01guessing/src/main.rs	Mon Jan 11 15:02:25 2021 +0900
@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}