#proc-macro #endpoints #generate #tosic-http

macro tosic-http-macro

Proc Macros for generating endpoints when using the tosic-http crate

3 releases

0.0.3 Nov 27, 2024
0.0.2 Nov 18, 2024
0.0.1 Nov 13, 2024

#16 in #procmacro


Used in tosic-http

MIT license

5KB
78 lines

Tosic-HTTP

A powerful and simple HTTP server implementation that relies on tower to handle middleware. The main inspiration for this crate is actix-web and also made to learn more about creating robust and developer friendly code in Rust.

Important notes

  • This crate is not production ready!
  • Currently, this crate will only run on the nightly version of Rust since it relies on some experimental features. I'm currently working on removing this requirement, but I can't guarantee that it will be done
  • Breaking changes may happen at anytime since this is still far from a production ready crate

Examples

See examples folder for a few examples that were used during development of this crate. If there are any questions that are not answered in the examples or on the documentation page, feel free to submit an issue to GitHub.

Installation

To install this crate run cargo add tosic-http or add it to you Cargo.toml

[dependencies]
tosic-http = "0.0.*"

Dependencies

~0.5–1MB
~23K SLoC