Crates.io | rockbell |
lib.rs | rockbell |
version | 0.0.3 |
source | src |
created_at | 2023-03-15 16:46:05.035642 |
updated_at | 2024-04-15 05:52:26.554629 |
description | Rockbell is a no dependencies multithreaded web server for building HTML and Markdown (coming soon) websites. |
homepage | |
repository | https://github.com/battleoverflow/rockbell |
max_upload_size | |
id | 810848 |
size | 256,263 |
Rockbell is a Multithreaded HTTP server built in Rust for local development.
Rockbell is a barebones HTTP (GET) server that renders HTML, CSS, and JS files. Feel free to check out the /public
directory to see what the server renders when running with cargo.
You can install the crate via Cargo
or by adding this line to your Cargo.toml
file:
rockbell = "0.0.3"
Running this command will boot up the server and automatically connect to port 1337
in normal mode.
rockbell normal
You will need a directory called public/
in the current working directory. This is how rockbell
knows which HTML files to serve. There's an example of this in the repository under public/*
.
Starts the server in normal mode (no messages other than status codes and errors are printed)
rockbell normal
Starts the server in verbose mode (prints user-agent information, request status, worker status, and other basic responses)
rockbell verbose
Starts the server in debug mode (every message, including user-agent information, request status, worker status, public source code, and much more is printed)
rockbell debug