https://github.com/ryuapp/fastly-static-site-rust
Static site for Fasly Compute, powered by Rust
https://github.com/ryuapp/fastly-static-site-rust
fastly rust
Last synced: 10 months ago
JSON representation
Static site for Fasly Compute, powered by Rust
- Host: GitHub
- URL: https://github.com/ryuapp/fastly-static-site-rust
- Owner: ryuapp
- License: unlicense
- Created: 2025-07-21T15:11:03.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-23T13:20:41.000Z (11 months ago)
- Last Synced: 2025-08-25T09:39:57.732Z (10 months ago)
- Topics: fastly, rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fastly Static Site with Rust
An example of static site hosting using Rust and [Fastly Compute](https://www.fastly.com/documentation/guides/compute/). This approach is designed for small static sites.
> [!NOTE]
> Static sites larger than 100MB cannot be served due to Fastly Compute binary size limitations.
> See [Fastly Compute resource limits](https://www.fastly.com/documentation/solutions/tutorials/introduction-to-compute/1-introduction/) for more details.
>
> For larger static sites, consider using [compute-js-static-publish](https://github.com/fastly/compute-js-static-publish) or Fastly KV Store.
## Setup
### Build and Deploy
```bash
# Build
fastly compute build
# Deploy to Fastly
fastly compute deploy
```
## Development
```bash
fastly compute serve
```
Access examples:
- `/` → `index.html`
- `/about` → `about.html`
- `/index.html` → Redirects to `/`
- `/nonexistent` → `404.html`