Skip to content

Commit 9f13da8

Browse files
committed
Add ndk-test command
1 parent 25bed0f commit 9f13da8

6 files changed

Lines changed: 208 additions & 267 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ libc = "0.2.174"
4545
pathos = "0.3.0"
4646
serde = { version = "1.0.219", features = ["derive"] }
4747
serde_json = "1.0.141"
48-
tempfile = "3.15.0"
4948
termcolor = "1.4.1"
5049
toml = "0.9.2"
5150
version_check = "0.9.5"

example/basic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66

77
[lib]
88
# This must contain at least cdylib for Android libraries to be generated.
9-
crate-type = ["cdylib"]
9+
crate-type = ["rlib", "cdylib"]
1010

1111
# If you want your Android docs to appear on docs.rs, add one of the Android
1212
# triplets like this:

example/basic/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#[no_mangle]
2-
extern "C" fn example() {
2+
pub extern "C" fn example() {
33
println!("Hello Android!");
44
}
5+
6+
#[test]
7+
fn test_example() {
8+
example();
9+
}

0 commit comments

Comments
 (0)