Initial multi-file sample rust project

master
Mahmoud Al-Qudsi 2018-05-26 13:33:02 -05:00
commit 8a79052110
5 changed files with 20 additions and 0 deletions

2
.gitignore vendored

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

4
Cargo.lock generated

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

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

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

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