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" }
1 email / week to learn how to (ab)use technology for fun & profit: Programming, Hacking & Entrepreneurship.
I hate spam even more than you do. I'll never share your email, and you can unsubscribe at any time.

Tags: rust, programming, tutorial

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!

Related posts