3 ms·
From comments, this does fill in some important blanks for some, but IMHO (H=humble and possibly a bit harsh), it’s not a clear explanation because it doesn’t
by Someone 6y ago
From comments, this does fill in some important blanks for some, but IMHO (H=humble and
possibly a bit harsh), it’s not a clear explanation because it doesn’t tell all for absolute beginners.
I think you’ll lose beginners at “These are the different ways we should be able to consume our modules”.
There is no description of what a module is, why they’re needed (or are they optional?), and what that “Cargo.toml” file is about.
I happen to know (rightfully or wrongfully) Cargo is Rust’s package manager, but does Cargo require modules (I would guess so, but reading https://doc.rust-lang.org/book/ch07-01-packages-and-crates.html https://doc.rust-lang.org/book/ch07-01-packages-and-crates.h..., it may need packages, but not necessarily modules), do modules require the use of Cargo (I would guess not, but then, why make a discussion of modules harder by adding Cargo-related stuff?)?