Craweb
Multithreaded asynchronous web server, written in Rust. And it's really fast (we are handling one request in less than 1 second)!
Installation
You can install this crate using crates.io.
[]
= "*" # Or you can replace version with specific ones.
Writing basic server
In order to start the server, you must do the following:
- Initialize the server in your
main.rsfile. - Add at least one route.
- Bind the server to the specific IP address and port.
Here's an example (as well as in the example_server in the root repository):
use HashMap;
use Arc;
use ;
async
License
This crate is licensed under the MIT License. You can read the full license text here.