How To Install librust-isahc-dev on Debian 12

Learn how to install librust-isahc-dev on Debian 12 with this tutorial. librust-isahc-dev is practical HTTP client that is fun to use - Rust source code

Introduction

In this tutorial we learn how to install librust-isahc-dev on Debian 12.

What is librust-isahc-dev

librust-isahc-dev is:

Isahc (pronounced like Isaac) is a practical HTTP client that is fun to use.

Key features:

  • Full support for HTTP/1.1 and HTTP/2.
  • Configurable request timeouts, redirect policies, Unix sockets, and many more settings.
  • Offers an ergonomic synchronous API as well as a runtime-agnostic asynchronous API with support for async/await.
  • Fully asynchronous core, with incremental reading and writing of request and response bodies and connection multiplexing.
  • Sessions and cookie persistence.
  • Automatic request cancellation on drop.
  • Uses the http crate as an interface for requests and responses.

This package contains the source for the Rust isahc crate, packaged for use with cargo and dh-cargo.

There are three methods to install librust-isahc-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install librust-isahc-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install librust-isahc-dev using apt-get by running the following command:

sudo apt-get -y install librust-isahc-dev

Install librust-isahc-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librust-isahc-dev using apt by running the following command:

sudo apt -y install librust-isahc-dev

Install librust-isahc-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install librust-isahc-dev using aptitude by running the following command:

sudo aptitude -y install librust-isahc-dev

How To Uninstall librust-isahc-dev on Debian 12

To uninstall only the librust-isahc-dev package we can use the following command:

sudo apt-get remove librust-isahc-dev

Uninstall librust-isahc-dev And Its Dependencies

To uninstall librust-isahc-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove librust-isahc-dev

Remove librust-isahc-dev Configurations and Data

To remove librust-isahc-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge librust-isahc-dev

Remove librust-isahc-dev configuration, data, and all of its dependencies

We can use the following command to remove librust-isahc-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librust-isahc-dev

Dependencies

librust-isahc-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install librust-isahc-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.