Replies: 3 comments 2 replies
-
The Ensure that you don't have a source override in your |
Beta Was this translation helpful? Give feedback.
-
I thought it was strange as well since there aren't any overrides or patching, and even when removing all other dependencies I'm running into the issue. I dug a bit deeper and found the potential cause. Here's a dockerfile which will reproduce the issue when attempting to build: FROM rust:1.57.0
RUN cargo new repro-test
WORKDIR repro-test
RUN echo "sqlx = { version = \"0.6.0\", features = [\"runtime-async-std-native-tls\"] }" >> Cargo.toml
RUN cargo build
CMD ["/bin/echo", "success"] If you save this into a Testing with I'll update with more info as I come across it for future readers. |
Beta Was this translation helpful? Give feedback.
-
Q: Can somebody help me figure it out how to install ver. 0.6 with certain features like Context
Issue
Trying as simple (as it used to work with ver. 0.5.x) fails with: ❯ cargo install --version=^0.6 sqlx-cli --no-default-features --features postgres
Updating crates.io index
Installing sqlx-cli v0.6.1
Compiling autocfg v1.1.0
---
error: one of the features ['runtime-actix-native-tls', 'runtime-async-std-native-tls', 'runtime-tokio-native-tls', 'runtime-actix-rustls', 'runtime-async-std-rustls', 'runtime-tokio-rustls'] must be enabled
--> /home/dxps/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-rt-0.6.1/src/lib.rs:11:1
|
11 | / compile_error!(
12 | | "one of the features ['runtime-actix-native-tls', 'runtime-async-std-native-tls', \
13 | | 'runtime-tokio-native-tls', 'runtime-actix-rustls', 'runtime-async-std-rustls', \
14 | | 'runtime-tokio-rustls'] must be enabled"
15 | | );
| |_^
error: could not compile `sqlx-rt` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sqlx-cli v0.6.1`, intermediate artifacts can be found at `/tmp/cargo-installbS7B9E`
❯ And providing one of them (tried with others as well, same result) fails with: ❯ cargo install --version=^0.6 sqlx-cli --no-default-features --features postgres,runtime-tokio-rustls
Updating crates.io index
Installing sqlx-cli v0.6.1
error: failed to compile `sqlx-cli v0.6.1`, intermediate artifacts can be found at `/tmp/cargo-install8OVp11`
Caused by:
none of the selected packages contains these features: runtime-tokio-rustls
❯ Update 1: Eventually, I just used |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Attempting to upgrade to the 0.6.0 release, I'm encountering this error:
The relevant line in my
Cargo.toml
:This seems to happen when starting entirely "fresh" as well.
Beta Was this translation helpful? Give feedback.
All reactions