Browse Source

Initial multi-file sample rust project

master
Mahmoud Al-Qudsi 2 years 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 @@
/target
**/*.rs.bk

+ 4
- 0
Cargo.lock View File

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


+ 6
- 0
Cargo.toml View File

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

[dependencies]

+ 3
- 0
src/foo.rs View File

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

+ 5
- 0
src/main.rs View File

@@ -0,0 +1,5 @@
mod foo;

fn main() {
foo::bar();
}

Loading…
Cancel
Save