This problem hasn’t been solved yet, but I think it is solvable. I’ve been writing a lot of cross-platform Rust and think these would help a lot:
- Add an NSURLSession backend to reqwest. The abstractions match well, and Obective-C interop is pretty solid
- A Tokio API compatible networking implementation using the Network framework’s C API. Not quite sure how well this would work, but I think it’s possible.
I will try to build these at some point
ktor.io successfully does the first thing for Kotlin Multiplatform, multiplexing all of OkHttp, NSURLSession, fetch and others
- Add an NSURLSession backend to reqwest. The abstractions match well, and Obective-C interop is pretty solid
- A Tokio API compatible networking implementation using the Network framework’s C API. Not quite sure how well this would work, but I think it’s possible.
I will try to build these at some point
ktor.io successfully does the first thing for Kotlin Multiplatform, multiplexing all of OkHttp, NSURLSession, fetch and others