Mastodon Feed: Post

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

"If a package contains src/main.rs and src/lib.rs, it has two crates: a binary and a library, both with the same name as the package."

hmmm... so, is this so one can have a testing program in main.rs to use the library you are working through in lib.rs? figuring out how this interacts with cargo should be interesting

#LearningRust