Mastodon How to import a crate from git in Rust

How to import a crate from git in Rust

Importing a crate from git is as simple as adding the following line in your Cargo.toml

[dependencies]
rand = { git = "https://github.com/briansmith/ring", branch = "main" }
Join the private club where I share exclusive tips and stories about programming, hacking and entrepreneurship. 1 message / week.
I hate spam even more than you do. I'll never share your email, and you can unsubscribe at any time.

Want to learn Rust and offensive security? Take a look at my book Black Hat Rust. All early-access supporters get a special discount and awesome bonuses: https://academy.kerkour.com/black-hat-rust?coupon=BLOG.
Warning: this offer is limited in time!


Tags: rust, programming, tutorial

Related posts