Skip to content

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

@Shel-M

Description

@Shel-M

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions