Skip to content

Does the short cargo-deps line work for crate features? #153

Description

@0atman

I'd like to replace the long, full tokio manifest header:

//! ```cargo
//! [dependencies]
//! tokio = { version = "1", features = ["full"] }
//! ```
async fn my_async_fn_scope(url: &String) {
  todo!()
}

With something like:

// cargo-deps: tokio = { version = "1", features = ["full"] }
async fn my_async_fn_scope(url: &String) {
  todo!()
}

But it looks like the extra syntax might not be supported?

error: could not parse embedded manifest: TOML parse error at line 2, column 24
  |
2 | tokio = { version = "1"
  |                        ^
invalid inline table
expected `}`

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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