@rustlang friends, what are some common conventions for naming cargo workspaces when splitting up a lib from a cli. golang by convention uses `cmd`. do we have a convention around this yet?
-
-
Hi! -- we currently don't have any docs on this for the CLI book (https://twitter.com/rustlang/status/1049733648415711234 …), but we probably should! Personally I tend to use src/cli.rs to hold the parsing logic, front it by src/lib.rs and make src/main.rs as thin as possible. Example: https://github.com/yoshuawuyts/changelog/tree/master/src …
-
that's also almost what I'm going for except that I'd like http://lib.rs to stand alone to be used outside a cli context and absent of cli crate dependencies. workspaces are the tool I have at my disposal for this that makes that some what convenient.
- 11 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.