When I try to cross compile to android x86_64, I'm getting thousands of errors like this, with std lib stuff missing:
error[E0412]: cannot find type `Result` in this scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/futures-sink-0.3.21/src/lib.rs:207:74
|
207 | fn poll_close(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/futures-sink-0.3.21/src/lib.rs:208:25
|
208 | Poll::Ready(Ok(()))
| ^^ not found in this scope
solution:
rustup target add x86_64-linux-android