Skip to content

Commit b7143fa

Browse files
update
1 parent 63cd3a6 commit b7143fa

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎Cargo.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ description = "Rust Android multi-architecture example"
77
license = "Apache 2.0"
88

99
[lib]
10-
crate-type = ["cdylib"]
10+
name = "android_rust_app"
11+
crate-type = ["cdylib", "staticlib"]
1112

1213
[dependencies]
1314
napi = "2"

‎src/lib.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[no_mangle]
2+
pub extern "C" fn hello_android() -> i32 {
3+
42
4+
}

0 commit comments

Comments
 (0)