Skip to content

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

Open
cz-theng wants to merge 2 commits intoparitytech:masterfrom
cz-theng:fix-stdio-example
Open

Add rt-multi-thread feature for example of stdio#665
cz-theng wants to merge 2 commits intoparitytech:masterfrom
cz-theng:fix-stdio-example

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]

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
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