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

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.

主站蜘蛛池模板: 荆门市| 稷山县| 龙陵县| 乌兰察布市| 上蔡县| 扶沟县| 罗田县| 宁南县| 昌吉市| 沈阳市| 玉门市| 黄平县| 饶平县| 虹口区| 江津市| 清丰县| 怀化市| 岐山县| 锦屏县| 娄烦县| 团风县| 灵宝市| 石柱| 玛多县| 滨州市| 稷山县| 张家界市| 即墨市| 吴旗县| 泽普县| 岢岚县| 凤城市| 郴州市| 会宁县| 吕梁市| 当涂县| 义马市| 水富县| 渭源县| 仁怀市| 安仁县|