Rohanasan: An extremely fast backend framework built for rust
Made with Performance, optimization and ease of use in mind.
Currently available in C/C++/Rust programming languages only.
Please use a linux/unix/mac kind of os.
This library has been built from scratch.
How to use in your project?
- Open terminal inside the parent folder where you would like to create the folder of your project
- Run:
cargo new myproj
cd myproj
cargo add rohanasan
- For a start you can add this to main.rs:
use ;
cargo runto run your project.- Go to:
localhost:8080. - Enjoy using Rohanasan!
How to run the example?
git clone https://github.com/rohanasan/rohanasan-rs.git
cd rohanasan-rs
cd examples
cargo run --example example
Discord server link:
Current Features:
- Can run a server at a specified port
- Can serve a folder named static at /static
- Can send files as http response
- Can give you the path, method and protocol
TODO:
- Add feature to change the directory path of the public folder ☑️ Done!!!!
- Asynchronous file request handling
- Add feature to give the user an option to add index.html to static folder
- Add feature to... currently it's just a pre alpha release I have to add a lot of features right now!