How it works...
Publishing crates is a great way to get recognized by the Rust community and make whatever you are creating available to a wider audience. For the community to be able to quickly adapt your crate, be sure to use appropriate keywords and categories, as well as examples and tests to make it clear and easy to use, something that we did in step 1 and step 2. Cargo.toml provides many more options than specified previously, so check out the documentation, https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata, to find out more.
The most important property in that file is the package name, which uniquely identifies the crate. While there have been incidents on name squatting and selling names, this is generally ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access