ruxt_macros 0.1.1

The proc-macro crate for Ruxt, a file-based routing web framework.
Documentation

Ruxt Macros

This is a collection of macros for the Ruxt web framework.

Installation

Add the following to your Cargo.toml:

[dependencies]
ruxt-macros = "0.1.1"

Usage

#[ruxt_macros::main]
async fn main() -> std::io::Result<()> {
   let test_data = "Hello, World!";
   HttpServer::new(move || App::new().app_data(test_data.to_string()))
   .bind(("0.0.0.0", 8080))?
   .run()
   .await
}

License

This project is licensed under the MIT license.