There was an error while loading. Please reload this page.
1 parent 63cd3a6 commit b7143faCopy full SHA for b7143fa
2 files changed
Cargo.toml
@@ -7,7 +7,8 @@ description = "Rust Android multi-architecture example"
7
license = "Apache 2.0"
8
9
[lib]
10
-crate-type = ["cdylib"]
+name = "android_rust_app"
11
+crate-type = ["cdylib", "staticlib"]
12
13
[dependencies]
14
napi = "2"
src/lib.rs
@@ -0,0 +1,4 @@
1
+#[no_mangle]
2
+pub extern "C" fn hello_android() -> i32 {
3
+ 42
4
+}
0 commit comments