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

  • Rust Quick Start Guide
  • Daniel Arbuckle
  • 85字
  • 2021-06-10 19:46:00

Dependencies on Git repositories

Depending on a library stored in the Git version control system, either locally or remotely, is also easy. The linking code is slightly different, but it looks like this:

    [dependencies]
thing = { git = "https://github.com/example/thing" }

We tell Rust where to find the repository, and it knows how to check it out, compile it, and link it with our program. The repository location doesn't have to be a URL; it can be any repository location that the git command recognizes.

主站蜘蛛池模板: 鹿邑县| 思茅市| 黎城县| 苍溪县| 临武县| 黔西县| 贵定县| 全州县| 江都市| 宁夏| 阜城县| 平凉市| 甘洛县| 上犹县| 平乡县| 新邵县| 靖远县| 澄迈县| 龙游县| 潢川县| 奇台县| 永兴县| 洛川县| 霞浦县| 和田县| 新沂市| 莱西市| 宜宾市| 天津市| 修水县| 甘谷县| 石嘴山市| 张家川| 黑河市| 祥云县| 子长县| 昭通市| 从江县| 荃湾区| 泸水县| 赤壁市|