Ezarpa is a simple and easy-to-use library designed to help developers build web servers in C. It focuses on providing a basic framework for handling HTTP connections without imposing specific functionalities.
- Lightweight: Ezarpa keeps its codebase minimal, allowing developers to easily integrate it into their projects.
- Unopinionated: The library doesn't prescribe specific structures for handling requests or responses, giving developers flexibility.
- Easy to Use: Ezarpa offers a straightforward interface for creating and managing HTTP servers.
To use Ezarpa in your project, you can follow these steps:
- Clone the repository:
git clone [https://github.com/P1X3R/ezarpa.git](https://github.com/P1X3R/ezarpa.git)
- Enter into the Nix Shell (optional): This step will download required tools automatically and isolate the project from the rest of your system, avoiding dependency hell.
Without flakes:
nix-shell
With flakes:
nix develop
- Build the library:
cmake -B build
cmake --build build
Or if you want, usingn Ninja:
cmake -B build -G Ninja
cmake --build build
- Link the library: During the build process, Ezarpa creates a static library file (.a). Include this file in your project's linker settings.