官术网_书友最值得收藏!

Using crates.io

We saw cargo search earlier, which allowed us a quick and easy way to find third-party libraries from the command line, so that we could link them with our own program. That's very useful, but sometimes we want a little more information than what that provides. It's really most useful when we know exactly which library we want and just need a quick reference to the linking code.

When we don't know exactly what we want, it's usually better to use a web browser to look around https://crates.io/ and find options.

When we find an interesting or useful library in the web browser, we get the following:

  • The linking code
  • Introductory information
  • Documentation
  • Popularity statistics
  • Version history
  • License information
  • A link to the library's web site
  • A link to the source code

This richer information is useful for figuring out which library or libraries are best suited to our projects. Picking the best libraries for the job saves a lot of time in the end, so the web interface to crates.io is great.

The front page of crates.io shows new and popular libraries, divided up in several ways, and these can be interesting and useful to explore. However, the main value is the search box. Using the search box, we can usually find several candidates for any library needs we may have.

主站蜘蛛池模板: 青神县| 六安市| 白河县| 远安县| 黎川县| 东辽县| 正宁县| 西林县| 福州市| 金平| 襄樊市| 合作市| 闵行区| 衡阳市| 湘西| 固镇县| 景宁| 宣城市| 孝感市| 阜阳市| 大渡口区| 尚志市| 金川县| 关岭| 齐齐哈尔市| 汉阴县| 买车| 临猗县| 柳江县| 琼结县| 财经| 呼和浩特市| 宜春市| 罗城| 昭通市| 三穗县| 龙陵县| 郴州市| 繁昌县| 深州市| 保定市|