Ruxt Macros
This is a collection of macros for the Ruxt web framework.
Installation
Add the following to your Cargo.toml:
[]
= "0.1.2"
Usage
async
License
This project is licensed under the MIT license.
This is a collection of macros for the Ruxt web framework.
Add the following to your Cargo.toml:
[dependencies]
ruxt-macros = "0.1.2"
#[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
}
This project is licensed under the MIT license.