Browse Source

Initial multi-file sample rust project

master
Mahmoud Al-Qudsi 3 years ago
commit
8a79052110
  1. 2
      .gitignore
  2. 4
      Cargo.lock
  3. 6
      Cargo.toml
  4. 3
      src/foo.rs
  5. 5
      src/main.rs

2
.gitignore

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

4
Cargo.lock

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

6
Cargo.toml

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

3
src/foo.rs

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

5
src/main.rs

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