Windmark

crates.io docs.rs github.com

Windmark is An elegant and highly performant async Gemini server framework.

Usage

Add Windmark as a dependency

```toml

Cargo.toml

[dependencies] windmark = "0.1.0"

If you would like to use the built-in logger (reccomended)

windmark = { version = "0.1.0", features = ["logger"] }

```

Implement a Windmark server

```rust use windmark::response::Response;

fn main() -> std::io::Result<()> { windmark::Router::new() .mount("/", |, _, _| Response::Success("Hello, World!".into())) .seterrorhandler(|, _, _| { Response::PermanentFailure("This route does not exist!".into()) }) .run() } ```

Examples

Examples can be found within the examples/ directory.

License

This project is licensed with the GNU General Public License v3.0.