Replies: 2 comments 2 replies
-
Is out of the box rust-analyzer support basically blocked on refactoring Cargo features to be additive? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think the problem here is that rust-analyzer uses ❯ cargo check --workspace
Compiling sqlx-rt v0.5.10 (/home/mneumann/src/sqlx/sqlx-rt)
error: only one of ['runtime-actix-native-tls', 'runtime-async-std-native-tls', 'runtime-tokio-native-tls', 'runtime-actix-rustls', 'runtime-async-std-rustls', 'runtime-tokio-rustls'] can be enabled
--> sqlx-rt/src/lib.rs:21:1
|
21 | / compile_error!(
22 | | "only one of ['runtime-actix-native-tls', 'runtime-async-std-native-tls', \
23 | | 'runtime-tokio-native-tls', 'runtime-actix-rustls', 'runtime-async-std-rustls', \
24 | | 'runtime-tokio-rustls'] can be enabled"
25 | | );
| |_^
error: could not compile `sqlx-rt` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `sqlx-rt` due to previous error
error: could not compile `sqlx-rt` due to previous error So I think this isn't a rust-analyzer issue but rather a SQLx build system bug. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I open this repository in vscode with rust-analyzer (both release and preview) it errors with
The log shows
My rust-analyzer config is
Note that
cargo check --features runtime-tokio-native-tls --all-targets
works.Rust-analyzer is very useful during development so I would like it to work. I am not sure if this is something that should be fixed here or a bug in rust-analyzer. Is this problem known? Is there a workaround that fixes it?
Beta Was this translation helpful? Give feedback.
All reactions