You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Axum brings in zlib dependency which could be solved by modifying shell.nix in rust toolchain example like this
For example elasticsearch crate uses native-tls which requires libssl and fails to find it error while loading shared libraries: libssl.so.1.1
Using rusttsl in features weirdly results in the same error.
Describe the solution you'd like
Include example on building Rust library / binary with OpenSSL, probably generic example for managing dynamically linked system dependencies.
Describe alternatives you've considered
The same trick that I did with zlib didn't cut it for OpenSSL, besides OpenSSL seems present in default shell configuration, it just doesn't resolve with rust toolchain.
Thanks for raising this! Adding it to the Nix shell would not propagate it into the build actions themselves. For that the dependency needs to be declared in Bazel.
@AlexeiDrake didn't you have a working example of something like this?
Could it have something to do with how cargo works under nix + bazel?
Adding zlib to nix shell fixed rust unable to find its headers. Missing zlib failed during nix-shell --command 'bazel build my_target'
while with openssl it builds but fails on nix-shell --command 'bazel run my_target'
Is your feature request related to a problem? Please describe.
Axum brings in zlib dependency which could be solved by modifying shell.nix in rust toolchain example like this
For example elasticsearch crate uses native-tls which requires libssl and fails to find it
error while loading shared libraries: libssl.so.1.1
Using rusttsl in features weirdly results in the same error.
Describe the solution you'd like
Include example on building Rust library / binary with OpenSSL, probably generic example for managing dynamically linked system dependencies.
Describe alternatives you've considered
The same trick that I did with zlib didn't cut it for OpenSSL, besides OpenSSL seems present in default shell configuration, it just doesn't resolve with rust toolchain.
Additional context
Full list of Cargo.toml dependencies:
The text was updated successfully, but these errors were encountered: