Skip to content

How to Build This Project On Ubuntu Linux #488

Closed

Description

@bhaijiyunus

HI,

From the README it seems that the steps mentioned is to build on Window's system. Can you share or add how to build this project on Ubuntu Linux.

I just clone this project on Ubuntu Linux & simply did, but stuck with some error.
image

Please help to build this project on Linux.
FYI, I am new to the Rust world, just beginner.

Thanks,
Yunus

Activity

  1. sagebind commented on Feb 21, 2023

    @sagebind
    Owner

    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.

  2. bhaijiyunus commented on Feb 23, 2023

    @bhaijiyunus
    Author

    Hey Sagebind,

    Thanks for the response.
    Can we do client certificate based HTTPS API call with curl-rust? I have the end point which require the client certificate & key for authentication. I am able to test the API with simple curl command but looking for help to do in Rust.

    Thanks,
    Yunus

  3. sagebind commented on Feb 24, 2023

    @sagebind
    Owner

    Sure, you can supply client certificates using the appropriate options in your request. curl-rust is a pretty thin wrapper around the libcurl C API, so generally any examples using libcurl you can find will translate pretty easily to Rust.

    Pro tip: If you add the --libcurl flag to whatever curl command you want to replicate, and it will output a full C program that uses the libcurl API to perform a request equivalent to the CLI command. The methods on the Easy struct will generally have the exact same name as the C equivalent CURLOPT_* name.

  4. Repository owner locked and limited conversation to collaborators on Oct 5, 2026
  5. converted this issue into a discussion #673 on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions