2024-01-10 04:00:20 +00:00
|
|
|
# `actix-files`
|
2019-04-29 20:47:21 -07:00
|
|
|
|
2024-01-10 04:00:20 +00:00
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
|
2020-11-24 20:33:23 +00:00
|
|
|
[](https://crates.io/crates/actix-files)
|
2024-01-10 04:01:14 +00:00
|
|
|
[](https://docs.rs/actix-files/0.6.5)
|
2024-02-13 01:24:34 +00:00
|
|
|

|
2020-10-06 22:08:33 +01:00
|
|
|

|
|
|
|
<br />
|
2024-01-10 04:01:14 +00:00
|
|
|
[](https://deps.rs/crate/actix-files/0.6.5)
|
2020-10-06 22:08:33 +01:00
|
|
|
[](https://crates.io/crates/actix-files)
|
2021-06-26 16:33:36 +01:00
|
|
|
[](https://discord.gg/NWpN5mmg3x)
|
2020-10-06 22:08:33 +01:00
|
|
|
|
2024-01-10 04:00:20 +00:00
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
2024-01-10 04:03:29 +00: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 22:08:33 +01:00
|
|
|
|
2024-01-10 04:03:29 +00:00
|
|
|
<!-- cargo-rdme end -->
|