Can't compile salvo
when enable feature that use salvo_extra
#498
-
I try to [dependencies]
salvo = { version = "0.58.3", features = ["websocket"] } But it fail to compile
the above error use If I tried to disable it i.e
it give additional error. However, this works fine (no [dependencies]
salvo_extra = { version = "0.58.3", features = ["websocket"], default-features = false } Those macro error happen on rust v1.74, v1.72.0, and nightly. |
Beta Was this translation helpful? Give feedback.
Answered by
chrislearn
Nov 21, 2023
Replies: 2 comments 2 replies
-
Can you compile examples in this repository? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I checked it again, it can compile correctly. This is my Cargo.toml [package]
name = "example-websocket"
version = "0.1.0"
edition = "2021"
[dependencies]
salvo = { version = "0.58.3", features = ["websocket"] }
tokio = { version = "1", features = ["full"]}
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DrSensor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I checked it again, it can compile correctly.
This is my Cargo.toml