Browse Source

Initial multi-file sample rust project

master
Mahmoud Al-Qudsi 1 year ago
commit
8a79052110
5 changed files with 20 additions and 0 deletions
  1. 2
    0
      .gitignore
  2. 4
    0
      Cargo.lock
  3. 6
    0
      Cargo.toml
  4. 3
    0
      src/foo.rs
  5. 5
    0
      src/main.rs

+ 2
- 0
.gitignore View File

@@ -0,0 +1,2 @@
1
+/target
2
+**/*.rs.bk

+ 4
- 0
Cargo.lock View File

@@ -0,0 +1,4 @@
1
+[[package]]
2
+name = "meson-rust"
3
+version = "0.1.0"
4
+

+ 6
- 0
Cargo.toml View File

@@ -0,0 +1,6 @@
1
+[package]
2
+name = "meson-rust"
3
+version = "0.1.0"
4
+authors = ["Mahmoud Al-Qudsi <mqudsi@neosmart.net>"]
5
+
6
+[dependencies]

+ 3
- 0
src/foo.rs View File

@@ -0,0 +1,3 @@
1
+pub fn bar() -> () {
2
+    println!("Hello, world!");
3
+}

+ 5
- 0
src/main.rs View File

@@ -0,0 +1,5 @@
1
+mod foo;
2
+
3
+fn main() {
4
+    foo::bar();
5
+}

Loading…
Cancel
Save