Vendor CMakeRust
This commit is contained in:
committed by
Dustin J. Mitchell
parent
37d7f3de8a
commit
7492fc48bb
1
cmake/CMakeRust/crates/test-lib/.gitignore
vendored
Normal file
1
cmake/CMakeRust/crates/test-lib/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
target/
|
||||
1
cmake/CMakeRust/crates/test-lib/CMakeLists.txt
Normal file
1
cmake/CMakeRust/crates/test-lib/CMakeLists.txt
Normal file
@@ -0,0 +1 @@
|
||||
cargo_build(NAME test-lib)
|
||||
4
cmake/CMakeRust/crates/test-lib/Cargo.lock
generated
Normal file
4
cmake/CMakeRust/crates/test-lib/Cargo.lock
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
[[package]]
|
||||
name = "test-lib"
|
||||
version = "0.1.0"
|
||||
|
||||
9
cmake/CMakeRust/crates/test-lib/Cargo.toml
Normal file
9
cmake/CMakeRust/crates/test-lib/Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "test-lib"
|
||||
version = "0.1.0"
|
||||
authors = ["Marc-André Moreau <marcandre.moreau@gmail.com>"]
|
||||
|
||||
[lib]
|
||||
crate-type = ["staticlib"]
|
||||
|
||||
[dependencies]
|
||||
5
cmake/CMakeRust/crates/test-lib/src/lib.rs
Normal file
5
cmake/CMakeRust/crates/test-lib/src/lib.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn hello() {
|
||||
println!("hello world!");
|
||||
}
|
||||
Reference in New Issue
Block a user