Missing feature for sqlx-rt to compile
Upon compilation this error occurs:
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/norom/.cargo/git/checkouts/sqlx-f05f33ba4f5c3036/d3093d0/sqlx-rt/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 | | );
| |_^
This can be solved by e.g. changing "runtime-tokio"
to "runtime-tokio-rustls"
in Cargo.toml underneath the sqlx table.