a16z / helios

A fast, secure, and portable multichain light client for Ethereum
MIT License
1.88k stars 299 forks source link

[build failed]: when using helios as library for Android #365

Open hsyodyssey opened 2 months ago

hsyodyssey commented 2 months ago

Description Build failed when using helios as library for JNI.

error[E0433]: failed to resolve: could not find `linux` in `os`
  --> /home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/interprocess-2.2.1/src/os/unix/uds_local_socket/tokio/stream.rs:36:17
   |
36 |             use std::os::linux::net::SocketAddrExt;
   |                          ^^^^^ could not find `linux` in `os`
   |

This issue is caused by library interprocess-2.2.1

Trick to solve this for now Manually add this part: in https://github.com/kotauskas/interprocess/commit/db6c36d1ccf86e607490e116d15ec7dbca1500af

ncitron commented 2 months ago

Is there anything actionable here or can we expect interprocess's next release to resolve this?

hsyodyssey commented 2 months ago

My current solution is to find this piece of code and make the same local modification mentioned above before compiling. I think they will likely fix it in a future release.