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

README.md Usage section doesn't include "async" feature, describes async usage #9

Open
Shel-M opened this issue Jul 28, 2023 · 0 comments

Comments

@Shel-M
Copy link

Shel-M commented Jul 28, 2023

README.md uses the following Cargo instruction

[dependencies]
rustyrepl = "0.2"

But async usage described in next section requires the "async" features.

[dependencies]
rustyrepl = { version="0.2", features = ["async"] }

If feature is not included, build produces the following error

error[E0195]: lifetime parameters or bounds on method `process_command` do not match the trait declaration
  --> example\src\main.rs:28:14
   |
28 |     async fn process_command(&self, command: Cli) -> anyhow::Result<()> {
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetimes do not match method in trait
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

No branches or pull requests

1 participant