#rustlang If I type `cargo new foobar` can I get cargo to create a source file called http://foobar.rs rather than http://main.rs . I know I can apply a bit of shell script what-not to achieve this but, I’d rather use the built in tools.
Don’t forget you’ll need to change the configuration in Cargo.toml to use that name
-
-
#rustlang Thanks! I’ve added [[bin]] name = "guessing_game" path = "src/guessing_game.rs" To cargo.toml. I need to write script which runs “cargo new <name>” and which then renames the http://main.rs to <name>.rs and amends the cargo.toml.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.