trillium
tower-http
trillium | tower-http | |
---|---|---|
6 | 4 | |
318 | 633 | |
2.5% | 1.9% | |
9.6 | 8.1 | |
5 days ago | 7 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
trillium
-
Hey rustaceans, which web framework you guys suggest for a small application?
i like trillium a lot. inspired by plug (elixir), you just add plugs in a vertical stack and the request goes from top to bottom. there is also ntex which has a ton of examples inspired by actix-web (might have been a fork) https://github.com/ntex-rs/examples
-
A struct field that's either a Reference or Value
Maybe you want something like this, which is a Cow-like enum that either holds a &mut T or a T?
-
New Tokio blog post: Announcing Axum - Web framework that focuses on ergonomics and modularity
I've been planning on using trillium on a project, the main difference I can see between it and Axum is that Axum allows you to use existing tower middle ware, right?
-
Trillium web framework
I'll definitely prioritize this! I hadn't really thought much about it because it's straightforward to do in application code, but it seems reasonable to make it easier for people to get started with this common use case. I opened up a discussion on gh, let me know if something like what you had in mind https://github.com/trillium-rs/trillium/discussions/36
-
New Tower guide: Building a middleware from scratch
Any thoughts on (trillium)[https://github.com/trillium-rs/trillium]? Looks like you're fulfilling similar niches.
tower-http
-
Rust open TCP Connection
If your goal is specifically a web proxy, you also might want to take a look at async Rust such as hyper and tower-http, which are part of the tokio ecosystem. (But spawning threads could be just fine too, if it's not super performance-sensitive.)
-
tower-http ServeDir sending file speed is extremely slow (tower-http 700KiB/s vs actix 800MiB/s)
here's the issue for more detailed info: https://github.com/tower-rs/tower-http/issues/136
-
New Tower guide: Building a middleware from scratch
tower-http has several simple middleware if you're looking for more examples. AddExtension, SetRequestHeader and SetResponseHeader are good places to start. If you want to see something that goes all-in then Trace is probably the most complex middleware in tower-http.
-
HTTP server with lots of network knobs?
You could also look at https://github.com/tower-rs/tower-http which is a work in progress set of HTTP specific middlewares for tower. It also has examples that uses hyper as the HTTP server.
What are some alternatives?
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
hyper - An HTTP library for Rust
rust-web-framework-comparison - A comparison of some web frameworks and libs written in Rust
tower - async fn(Request) -> Result<Response, Error>
jelly-actix-web-starter - A starter template for actix-web projects that feels very Django-esque. Avoid the boring stuff and move faster.
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
dropshot - expose REST APIs from a Rust program
governor - A rate-limiting library for Rust (f.k.a. ratelimit_meter)
tonic - A native gRPC client & server implementation with async/await support.
static-file-server-speed-compare
tiny-http - Low level HTTP server library in Rust
flamegraph - Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3