Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
SAI_Peregrinus
1d ago
0 comments
Share
Not particularly annoying. You type `cargo new [options] <path>`, probably with the `--lib` option for a library crate, and it makes a new crate at <path>. Then you open the created lib.rs & cargo.toml in your editor & start writing code.
undefined | Better HN
0 comments
default
newest
oldest
loeg
1d ago
You end up with at least one extra level of directory nesting, and you have to manage a Cargo.toml for each crate?
j
/
k
navigate · click thread line to collapse