| Crates.io | impulse-static-server |
| lib.rs | impulse-static-server |
| version | 1.0.0-alpha.6 |
| created_at | 2025-07-21 21:24:00.311084+00 |
| updated_at | 2025-11-14 20:08:26.427953+00 |
| description | Simple static server |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1762697 |
| size | 131,070 |
Simple static server. Features:
impulse-server-kit (see configuration example)dist or /usr/local/frontend-dist/ folder/, it returns index.html, excluding filesCustomStaticRouter::new_with_cacher or by default - with ETag and Last-ModifiedThis project is supporting Deployer. You can build server with:
deployer build
Or, alternatively, just build with cargo:
cargo build --release
dist folder.impulse-static-server executable near dist folder../impulse-static-server.[!NOTE] There is no need to specify working dir, static server must work with distribution files placed nearly.
Just include it into your Cargo.toml:
[dependencies]
impulse-static-server = { git = "https://github.com/impulse-sw/impulse-kit.git", tag = "0.11" }
and use one of these functions:
frontend_router - same behavior as the binary Static Serverfrontend_router_from_given_dist - you can specify any dist folder you want