---
title: fastly
summary: This Rustdoc page is a reference for how to use individual APIs from this SDK. For a guide-level introduction to using Compute with this SDK, see Rust on Compute at the Fastly Developer Hub.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/
---

**Kind:** Module  
**Package:** fastly 0.13.1  
**Path:** `fastly`

## Rust SDK for Compute.

This Rustdoc page is a reference for how to use individual APIs from this SDK. For a guide-level
introduction to using Compute with this SDK, see [Rust on
Compute](https://developer.fastly.com/learning/compute/rust) at the Fastly Developer Hub.

## Modules

| Name | Summary |
| --- | --- |
| [acl](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/acl/) | Compute ACLs. |
| [backend](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/backend/) | Backend server. |
| [cache](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/cache/) | Compute Cache APIs. |
| [compute_runtime](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/) | Functions for interacting with the runtime of the Compute service. |
| [config_store](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/config_store/) | Config Store for Compute. |
| [convert](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/convert/) | Convenient conversion traits. |
| [device_detection](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/device_detection/) | Device detection based on the User-Agent header. |
| [dictionary](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/dictionary/) | Dictionaries for Compute. |
| [erl](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/erl/) | Edge rate limiter and supporting functions. |
| [error](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/error/) | Error-handling utilities. |
| [experimental](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/experimental/) | Experimental Compute features. |
| [geo](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/geo/) | Geographic data for IP addresses. |
| [handle](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/handle/) | Low-level interfaces to the Compute APIs. |
| [http](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/) | Compute HTTP interfaces. |
| [image_optimizer](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/image_optimizer/) | Interface to the Fastly Image Optimizer. |
| [kv_store](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/kv_store/) | Interface to the [Compute KV Store][blog]. |
| [log](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/log/) | Low-level interface to Fastly's [Real-Time Log Streaming][about] endpoints. |
| [mime](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/mime/) | [Media types][mdn] (also known as Multipurpose Internet Mail Extensions or MIME types). |
| [secret_store](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/secret_store/) | Interface to the Compute Secret Store. |
| [security](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/security/) | Interface to the Fastly security products. |
| [shielding](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/shielding/) | Support for shielding for Compute services |

## Structs

| Name | Summary |
| --- | --- |
| [Body](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.Body/) | An HTTP body that can be read from, written to, or appended to another body. |
| [ConfigStore](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.ConfigStore/) | A Compute Config Store. |
| [DeleteBuilder](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.DeleteBuilder/) | A builder for KVStore deletes, supporting advanced features like asynchronous execution. |
| [Dictionary](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.Dictionary/) (deprecated) | A Compute Dictionary. |
| [InsertBuilder](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.InsertBuilder/) | A builder for KVStore insertions, supporting advanced configuration like [`InsertMode`](https://docs.rs/fastly_sys/latest/fastly_sys/enum.InsertMode.html), background_fetch, if_generation_match, metadata, ttl, and asynchronous execution. |
| [KVStore](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.KVStore/) | A [Compute KV Store][blog]. |
| [ListBuilder](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.ListBuilder/) | A builder for KVStore key list operations, supporting advanced configuration like cursor, limit, prefix, and asynchronous execution. |
| [LookupBuilder](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.LookupBuilder/) | A builder for KVStore lookups, supporting advanced features like asynchronous execution. |
| [Request](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.Request/) | An HTTP request, including body, headers, method, and URL. |
| [Response](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.Response/) | An HTTP response, including body, headers, and status code. |
| [SecretStore](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/struct.SecretStore/) | A Compute Secret Store. |

## Macros

| Name | Summary |
| --- | --- |
| [main](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/attr.main/) | Main function attribute for a Compute program. |
| [panic_with_status](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/macro.panic_with_status/) | Send a response to the client with the given HTTP status code, and then panic. |
