Update Android build scripts. Remove unnecessary project files
This commit is contained in:
10
examples/rust/binding-example/src/main.rs
Normal file
10
examples/rust/binding-example/src/main.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
#[link(name = "libzt", kind = "dylib")]
|
||||
extern {
|
||||
fn zts_socket(address_family: i32) -> i32;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let x = unsafe { zts_socket(100) };
|
||||
println!("zts_socket() = {}", x);
|
||||
}
|
||||
Reference in New Issue
Block a user