-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reqwest can not cross build for target x86_64-unknown-linux-musl with tokio library #11
Comments
It could be something to do with this https://github.com/messense/cargo-zigbuild/blob/bdda6ef83937e57b99fa3a6c14d81ec95a97a290/src/zig.rs#L70-L81 |
@ikey4u Thanks for confirming, I've also verified that the built artifact runs fine. |
That's unfortunate but this project is so young that I'm not aiming for supporting old Rust versions. |
its does not matter, but you can specify the minimal supported rust version on homepage. |
For future reference, this issue is caused by upstream Rust distributes libc.a in self-contained for musl and wasi since Rust 1.59.0 (I think the code is in 1.58.0 but isn't really used since it requires a libc 0.2.107 and later). |
This a minimal example to reproduce the problem.
Cargo.toml
main.rs
Notice that reqwest enables feature
native-tls-vendored
to let us build tls library source using zig.To build the example, using command below
The generated error is here
And line 196 is here
The text was updated successfully, but these errors were encountered: