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

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.

主站蜘蛛池模板: 繁昌县| 邵东县| 玉山县| 扎囊县| 永和县| 山阴县| 阿勒泰市| 巴彦县| 呼伦贝尔市| 开封县| 潜山县| 淳安县| 墨玉县| 仪陇县| 六安市| 墨竹工卡县| 张家口市| 昌黎县| 双柏县| 鹤壁市| 丰顺县| 台东县| 宁国市| 阳朔县| 奎屯市| 云霄县| 云浮市| 民丰县| 长白| 历史| 鄱阳县| 湘乡市| 喜德县| 临洮县| 双江| 天镇县| 满城县| 防城港市| 罗甸县| 南靖县| 鹤岗市|