rofld icon indicating copy to clipboard operation
rofld copied to clipboard

Consider using cargo workspaces over the `cargo` script

Open euclio opened this issue 7 years ago • 3 comments

euclio avatar Jun 20 '17 14:06 euclio

I actually use both (see Cargo.toml in root).

What I found, however, that there doesn't seem to be a handy way of executing specific Cargo commands against specific crates. At best, you can cd $CRATE_DIR && cargo stuff, which is exactly what my script is doing in a more convenient way :)

In my other project I eventually upgrade to Python-based task runner because I had non-cargo related things, too. Ideally I'd like a Rust equivalent of Grunt etc., but I haven't seen anything like that yet.

Xion avatar Jun 20 '17 20:06 Xion

Ah, missed that! Can you not run cargo run -p rofld, though?

euclio avatar Jun 20 '17 20:06 euclio

Oh hey, I totally wasn't aware of this switch! That not bad at all. Perhaps better than a hacky shell script :)

I'll update the README's but I can't promise I'll start using it exclusively ;p

Xion avatar Jun 20 '17 21:06 Xion