Crate drought

source ·
Expand description

A trait-based modular HTTP router with an extensible macro-based frontend.

The drought library is a work-in-progress! Currently the following is implemented:

  • Droughter itself
  • Core Droughts, providing nesting and lambda facilities
  • Static content embedding
  • Filesystem passthrough
  • URI rewriting
  • Macro Frontend
  • Macro Extensions

All of these features can be implemented by library consumers, however, they will be more properly integrated in future releases.

Do note that the major version number is currently 0. Although the core API is mostly finished, there may be some flips from things to and from references, just for performance’s sake.

Re-exports

pub use droughter::Drought;
pub use droughter::Droughter;
pub use droughter::DroughterBuilder;
pub use droughter::DroughterResult;
pub use droughter::DroughtResult;

Modules

The core logic of drought.

Macros

A macro to make writing lambda endpoints easier.
A macro to hide the ugly nesting needed for asynchronous callbacks to work.
A macro to make writing lambda endpoints easier.