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
I initially tried to install with just the 'postgres' feature, based on the instructions in this tutorial and got an error.
$ cargo install sqlx-cli --no-default-features --features postgres
...
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
--> /Users/edmurphy/.cargo/registry/src/github.com.-1ecc6299db9ec823/sqlx-rt-0.5.10/src/lib.rs:9:1
|
9 | / compile_error!(
10 | | "one of the features ['runtime-actix-native-tls', 'runtime-async-std-native-tls', \
11 | | 'runtime-tokio-native-tls', 'runtime-actix-rustls', 'runtime-async-std-rustls', \
12 | | 'runtime-tokio-rustls'] must be enabled"
13 | | );
| |_^
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.5.10`, intermediate artifacts can be found at `/var/folders/hx/2g4wddts0mb9f3tbg471c75m0000gn/T/cargo-installiHvI4w`
So I then retried the install, including an actix runtime, but I still got an error,
$ cargo install sqlx-cli --no-default-features --features runtime-actix-rustls,postgres
Updating crates.io index
Installing sqlx-cli v0.5.10
error: failed to compile `sqlx-cli v0.5.10`, intermediate artifacts can be found at `/var/folders/hx/2g4wddts0mb9f3tbg471c75m0000gn/T/cargo-installnOGGPg`
Caused by:
Package `sqlx-cli v0.5.10` does not have the feature `runtime-actix-rustls`
I then also tried with actix native tls
$ cargo install sqlx-cli --no-default-features --features runtime-actix-native-tls,postgres
Updating crates.io index
Installing sqlx-cli v0.5.10
error: failed to compile `sqlx-cli v0.5.10`, intermediate artifacts can be found at `/var/folders/hx/2g4wddts0mb9f3tbg471c75m0000gn/T/cargo-installiPw3bH`
Caused by:
Package `sqlx-cli v0.5.10` does not have the feature `runtime-actix-native-tls`
The intermediate artifacts are just a .rustc_info.json with the following contents;
I am attempting to use sqlx with actix, but got stuck immediately at an installation bug related to #1604
I'm running MacOS Big Sur 11.6.2
I initially tried to install with just the 'postgres' feature, based on the instructions in this tutorial and got an error.
So I then retried the install, including an actix runtime, but I still got an error,
I then also tried with actix native tls
The intermediate artifacts are just a
.rustc_info.json
with the following contents;I'm not sure how to proceed.
The text was updated successfully, but these errors were encountered: