Btnify
Hosts a website with buttons for you so you can focus on what matters!
Btnify is a small libary that lets you host a website with some buttons that will call a function or closure when clicked. Under the hood, Btnify uses Axum. This library is, I must admit, rather crude, but it works and it's open source! Please leave a pull request with any improvments you have :) I would appriciate it very much.
Examples
use ;
let greet_button = new;
let buttons = vec!;
// Notice: bind_server is async and you must await it
bind_server
.await
.unwrap;
use Mutex;
use ;
let count_button = new;
let buttons = vec!;
// Notice: bind_server is async and you must await it
bind_server
.await
.unwrap;