-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example app in console-subscriber doesn't build #252
Comments
In general, the console relies on unstable features in Tokio (the There's a |
I also hit this problem just now. While looking for the solution I came across this other issue: rust-lang/cargo#5376 (comment). In my case, I have this in my
Commenting the |
Oh, that makes sense; the working directory's |
I have the same settings set in my Currently it seems that the more specific So in order for it to work properly for all targets you can set e.g.: [build]
rustflags = ["--cfg", "tokio_unstable"]
[target.x86_64-unknown-linux-gnu]
rustflags = ["--cfg", "tokio_unstable"] This isn't ideal, but can be worked around. Depending on your use case, it might make sense to just add the tokio settings to the global config file instead and enable it everywhere. |
@hardliner66 oh, that's interesting! Perhaps we should add |
It should at least be documented as a gotcha, but having a copy-paste ready example for the most common targets sounds reasonable. |
The documentation has been updated to warn about this, so I'm going to close this issue now. |
The app example in console-subscriber fails because it's trying to use task::Builder which is non existent.
The text was updated successfully, but these errors were encountered: