trillium-error 0.1.0

Error handling support for trillium.rs
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 23.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 280.51 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • prabirshrestha/trillium-error
    0 1 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • prabirshrestha

trillium-error

This crate adds support for error handling in trillium web framework.

Due to limitations in Rust, error handling is currently not supported in trillium. When the language adds capability to express bounds for for<'a> Fn(&'a Conn) -> impl Future<Output=…> + 'a, trillium will add first class support for error handling. For more details please refer to the discussion here. Until then trillium-error provides a proc macro to help write handlers with error.

Usage

Refer to the docs.

LICENSE

License under Apache 2.0 or MIT