diff --git a/.gitignore b/.gitignore index 53d109f..1ded165 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,9 @@ /build/ /.gradle/ */build/ + +# Android JNI compiled libraries +jni/ + +# Cargo configuration files +zenoh-jni/.cargo/ diff --git a/zenoh-jni/Cargo.toml b/zenoh-jni/Cargo.toml index 17bec2e..2788a41 100644 --- a/zenoh-jni/Cargo.toml +++ b/zenoh-jni/Cargo.toml @@ -24,7 +24,21 @@ description = "Zenoh: Zero Overhead Pub/sub, Store/Query and Compute." name = "zenoh_jni" [features] -default = ["zenoh/default", "zenoh-ext"] +# Exclude transport_unixsock-stream for Android compatibility (avoid syncfs from nix fs feature) +default = [ + "zenoh/auth_pubkey", + "zenoh/auth_usrpwd", + "zenoh/transport_compression", + "zenoh/transport_multilink", + "zenoh/transport_quic", + "zenoh/transport_quic_datagram", + "zenoh/transport_tcp", + "zenoh/transport_tls", + "zenoh/transport_udp", + "zenoh/transport_ws", + "zenoh-ext", +] +default-no-unixsock = ["zenoh/default", "zenoh-ext"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] @@ -36,8 +50,8 @@ flume = "0.10.14" uhlc = "0.8.0" json5 = "0.4.1" serde_yaml = "0.9.19" -zenoh = { version = "1.7.2", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "main", features = ["unstable", "internal"], default-features = false } -zenoh-ext = { version = "1.7.2", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "main", features = ["internal"], default-features = false, optional = true } +zenoh = { path = "../../zenoh/zenoh", features = ["unstable", "internal"], default-features = false } +zenoh-ext = { path = "../../zenoh/zenoh-ext", features = ["internal"], default-features = false, optional = true } tracing = { version = "0.1" , features = ["log"] } [lib] name = "zenoh_jni"