mooman219 / rust-assist

My personal, simple, VSCode Rust integration tool.
https://marketplace.visualstudio.com/items?itemName=mooman219.rust-assist
MIT License
8 stars 1 forks source link

Support cargo-scripts scripts #1

Open pzmarzly opened 5 years ago

pzmarzly commented 5 years ago

https://github.com/DanielKeep/cargo-script#scripts

Right now it throws "Missing Cargo.toml" error.

mooman219 commented 5 years ago

This extension looks for the Cargo.toml file to find the root directory of a project, then runs a normal build from there. It looks like cargo-scripts sets up a special environment, and only outputs build information if it takes too long or if there's an error.

For me to support cargo-script, it'll need the option to output build errors with the --message-format=json flag. Until then, there isn't a reasonable way for me to support that unfortunately.