vim-cargo icon indicating copy to clipboard operation
vim-cargo copied to clipboard

Add super versions of cargo commands

Open ideasman42 opened this issue 8 years ago • 3 comments

This searches up the parent directories for the 'outer' most Cargo.toml, useful for building the entire project from a nested crate.


Note that I had problems using this plugin as-is.

The paths as reported in the quickfix window were relative to the Cargo.toml, not the pwd.

While the build worked, cycling through the errors didn't open the proper files.

This PR passes the Cargo.toml location to cargo, and adds support for building the parent-most Cargo.toml, which I needed when using creates in subdirectories of other crates.

ideasman42 avatar Sep 29 '16 12:09 ideasman42

I've yet to see a project where toml's are nested, do you have an example? I usually just work with different versioned crates. Also, I could imagine that if your build pipeline is that complex, you might need a Makefile.

timonv avatar Feb 26 '17 20:02 timonv

For an example see: https://gitlab.com/ideasman42/raster-retrace/tree/master this is something supported by Cargo for quite some time.

ideasman42 avatar Feb 27 '17 01:02 ideasman42

Looks good to me! Just needs the conflicts resolved.

timonv avatar Feb 27 '17 11:02 timonv