Skip to content
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

Add rt-multi-thread feature for example of stdio #665

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cz-theng
Copy link

When run cargo run --example stdio in jsonrpc/stdio direcotry , got:

	error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled.
	 --> stdio/examples/stdio.rs:4:1
	  |
	4 | #[tokio::main]
	  | ^^^^^^^^^^^^^^
	  |
	  = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info)

	error: could not compile `jsonrpc-stdio-server` due to previous error

should open "rt-multi-thread" for #[tokio::main]

stdio/Cargo.toml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants