| Crates.io | liveserve-rs |
| lib.rs | liveserve-rs |
| version | 0.1.0 |
| created_at | 2025-02-24 13:53:52.648901+00 |
| updated_at | 2025-02-24 13:53:52.648901+00 |
| description | Fast and lightweight development server with automatic file reloading. It serves static files and supports WebSockets for file change notifications, making it ideal for web development. |
| homepage | |
| repository | https://github.com/luizvbo/liveserve-rs |
| max_upload_size | |
| id | 1567516 |
| size | 81,787 |
Live Serve-rs is a lightweight and fast development server with automatic file reloading. It serves static files and supports WebSockets for file change notifications, making it ideal for web development.
If you have Rust installed, you can install liveserve-rs directly from crates.io:
cargo install liveserve-rs
Precompiled binaries are available on GitHub Releases. To install:
Download the binary for your operating system.
Grant execution permissions (Linux/macOS):
chmod +x liveserve-rs
Move the binary to a directory in your PATH, e.g.:
mv liveserve-rs /usr/local/bin/
To serve a directory (e.g., ./public) with automatic reloading:
liveserve-rs --root ./public
By default, the server runs on port 8080, but you can change it:
liveserve-rs --port 3000
If you are running a Single Page Application (SPA) that uses index.html as a fallback:
liveserve-rs --spa-entry index.html
If you want to contribute or run the project locally:
git clone https://github.com/your-username/liveserve-rs.git
cd liveserve-rs
cargo run -- --root ./public
This project is licensed under the MIT License.