2024-01-10 05:00:20 +01:00
|
|
|
# `actix-files`
|
2019-04-30 05:47:21 +02:00
|
|
|
|
2024-01-10 05:00:20 +01:00
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
|
2020-11-24 21:33:23 +01:00
|
|
|
[![crates.io](https://img.shields.io/crates/v/actix-files?label=latest)](https://crates.io/crates/actix-files)
|
2024-01-10 05:01:14 +01:00
|
|
|
[![Documentation](https://docs.rs/actix-files/badge.svg?version=0.6.5)](https://docs.rs/actix-files/0.6.5)
|
2023-08-01 20:33:32 +02:00
|
|
|
![Version](https://img.shields.io/badge/rustc-1.68+-ab6000.svg)
|
2020-10-06 23:08:33 +02:00
|
|
|
![License](https://img.shields.io/crates/l/actix-files.svg)
|
|
|
|
<br />
|
2024-01-10 05:01:14 +01:00
|
|
|
[![dependency status](https://deps.rs/crate/actix-files/0.6.5/status.svg)](https://deps.rs/crate/actix-files/0.6.5)
|
2020-10-06 23:08:33 +02:00
|
|
|
[![Download](https://img.shields.io/crates/d/actix-files.svg)](https://crates.io/crates/actix-files)
|
2021-06-26 17:33:36 +02:00
|
|
|
[![Chat on Discord](https://img.shields.io/discord/771444961383153695?label=chat&logo=discord)](https://discord.gg/NWpN5mmg3x)
|
2020-10-06 23:08:33 +02:00
|
|
|
|
2024-01-10 05:00:20 +01:00
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
2024-01-10 05:03:29 +01:00
|
|
|
<!-- cargo-rdme start -->
|
|
|
|
|
|
|
|
Static file serving for Actix Web.
|
|
|
|
|
|
|
|
Provides a non-blocking service for serving static files from disk.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
```rust
|
|
|
|
use actix_web::App;
|
|
|
|
use actix_files::Files;
|
|
|
|
|
|
|
|
let app = App::new()
|
|
|
|
.service(Files::new("/static", ".").prefer_utf8(true));
|
|
|
|
```
|
2020-10-06 23:08:33 +02:00
|
|
|
|
2024-01-10 05:03:29 +01:00
|
|
|
<!-- cargo-rdme end -->
|