Skip to content

Commit 8cdeea6

Browse files
0xbrayoErikBjare
authored andcommitted
fix(aw-sync): add cdylib crate-type for JNI shared library generation
- Added crate-type = ["cdylib", "rlib"] to [lib] section - cdylib is required to generate .so files for Android JNI - rlib allows the library to be used by other Rust code
1 parent d67870f commit 8cdeea6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

aw-sync/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ edition = "2021"
77
[lib]
88
name = "aw_sync"
99
path = "src/lib.rs"
10+
crate-type = ["cdylib", "rlib"]
1011

1112
[[bin]]
1213
name = "aw-sync"

0 commit comments

Comments
 (0)