18 releases

new 0.1.25 Apr 9, 2024
0.1.24 Apr 6, 2024
0.1.23 Mar 30, 2024
0.1.21 Feb 26, 2024
0.1.13 Jan 26, 2024

#3 in #miette

Download history 24/week @ 2024-01-18 1/week @ 2024-01-25 32/week @ 2024-02-01 6/week @ 2024-02-08 7/week @ 2024-02-15 322/week @ 2024-02-22 105/week @ 2024-02-29 9/week @ 2024-03-07 5/week @ 2024-03-14 107/week @ 2024-03-21 183/week @ 2024-03-28 270/week @ 2024-04-04

569 downloads per month
Used in 2 crates

Apache-2.0

54KB
1K SLoC

pavex pavex
Re-imagining backend development in Rust

What is Pavex?

Pavex is a new framework to build APIs with Rust.

Pavex aims to have it all: great ergonomics and high performance.
The same productivity boost of Ruby on Rails, Spring or ASP.NET Core.
As fast as a handwritten solution that strips away all abstractions.

Check out Pavex's documentation for a thorough introduction to the framework and its design philosophy.

Project status

Pavex is currently in closed beta—you can sign up here to get early access.

We regularly publish project updates.

Last update: This month in Pavex #9 [February 2024]

Previous updates:

Architectural Overview

If the section above was enough to get you intrigued, you can check out the architectural deep-dive in ARCHITECTURE.md to learn how Pavex works under the hood.

Contributing

Typo in documentation? Open a PR straight-away!
Small bug fix with a regression test? Open a PR straight-away!
Anything beyond 20 lines of code? Open an issue first.

If you are looking to contribute, you can find dedicated instructions in CONTRIBUTING.md.

License

Licensed under the Apache License, Version 2.0. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.


lib.rs:

This crate provides a custom graphical Miette handler for the Pavex project.

The handler is largely based on the miette::handlers::GraphicalHandler, with one key difference: we only report the code snippets from the related errors associated with a report. We have also done other minor tweaks to the graphical layout to better suit our needs.

This allows us to display snippets that come from different source files, a feature that doesn't have first-class support in miette.
In other words, you can see this custom handler as a "hack" to avoid having to maintain a full fork of miette.

Dependencies

~5–17MB
~220K SLoC