diff options
| author | ruki <[email protected]> | 2017-05-19 21:30:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-19 21:32:13 +0800 |
| commit | 03b7d8b955d11895cc15332360eca7b14d6cf58f (patch) | |
| tree | 4aa9b47aa3f1957a0a4343e7b1c4a8357e7018d5 /tests/projects/static_library_rust/src | |
| parent | 58e3bad5859530c8316de4b4b7939169cdd2c492 (diff) | |
add projects and modules in tests
Diffstat (limited to 'tests/projects/static_library_rust/src')
| -rw-r--r-- | tests/projects/static_library_rust/src/interfaces.rs | 5 | ||||
| -rw-r--r-- | tests/projects/static_library_rust/src/main.rs | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/projects/static_library_rust/src/interfaces.rs b/tests/projects/static_library_rust/src/interfaces.rs new file mode 100644 index 000000000..277008ba4 --- /dev/null +++ b/tests/projects/static_library_rust/src/interfaces.rs @@ -0,0 +1,5 @@ +pub fn add(a: i32, b: i32) -> i32 +{ + return a + b; +} + diff --git a/tests/projects/static_library_rust/src/main.rs b/tests/projects/static_library_rust/src/main.rs new file mode 100644 index 000000000..0cd4449d1 --- /dev/null +++ b/tests/projects/static_library_rust/src/main.rs @@ -0,0 +1,7 @@ +extern crate interfaces; + +fn main() +{ + println!("hello xmake!"); + println!("add: {}", interfaces::add(1, 1)); +} |
