﻿---
title: Installation
description: Add elasticsearch crate and version to Cargo.toml. Choose the version that is compatible with the version of Elasticsearch you are using: The following...
url: https://www.elastic.co/elastic/docs-builder/docs/2915/reference/elasticsearch/clients/rust/installation
products:
  - Elasticsearch
  - Elasticsearch Client
  - Elasticsearch Rust Client
---

# Installation
Add `elasticsearch` crate and version to Cargo.toml. Choose the version that is compatible with the version of Elasticsearch you are using:
```toml
[dependencies]
elasticsearch = "9.1.0-alpha.1"
```

The following *optional* dependencies may also be useful to create requests and read responses:
```toml
serde = "1"
serde_json = "1"
```