Windmark Comments

crates.io docs.rs github.com

A comment engine module for Windmark.

Usage

Add Windmark Comments as a dependency

```toml

Cargo.toml

[dependencies] windmark-comments = "0.1.0" ```

Attach Windmark Comments as a module

```rust // src/main.rs

use windmark::Response;

[windmark::main]

fn main() -> Result<(), Box> { windmark::Router::new() .setprivatekeyfile("windmarkcommentsprivate.pem") .setcertificatefile("windmarkcommentspublic.pem") .mount("/", Box::new(|| Response::Success("Hello, World!".into()))) .seterrorhandler(Box::new(|| { Response::PermanentFailure("This route does not exist!".into()) })) // Attach Windmark Comments .attach(windmarkcomments::module) .run() .await } ```

Examples

Examples can be found within the examples directory.

License

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