vim-package-info icon indicating copy to clipboard operation
vim-package-info copied to clipboard

Cargo.toml parsing skips child sections

Open alerque opened this issue 4 years ago • 0 comments

There are several places dependencies can show up in Cargo TOML files. This plugin catches only parent sections, but its possible to have child sections that are in a dot namespace (e.g. dependencies.<package_name>) and typically indented like this:

[dependencies]
subprocess = "0.2.6"

  [dependencies.config]
  version = "0.11.0"
  default-features = false
  features = [ "yaml" ]

[build-dependencies]
clap = "3.0.0-beta.2"

  [build-dependencies.vergen]
  version = "5.0.1"
  default-features = false
  features = [ "build", "git" ]

Note the two things this plugin picks up on and the two it does not:

image

alerque avatar May 14 '21 08:05 alerque