Skip to content
Discussion options

You must be logged in to vote

Welcome to Rust!

curl-rust is not an application that can be run, so you cannot use cargo run as there is no main function to run. Rather, curl-rust is a library that you can add as a dependency to your application to use. For example, you can create a new Cargo project using cargo new and then add curl-rust as a dependency to your project using cargo add curl. See also this section in The Cargo Book. You do not need to clone this repository in order to use it as a dependency in your code.

That said, if you just want to compile curl-rust by itself, you can do so with cargo build.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sagebind
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #488 on October 05, 2026 23:15.