hackernews-sauron
Tide
Our great sponsors
hackernews-sauron | Tide | |
---|---|---|
11 | 30 | |
113 | 4,954 | |
- | 1.0% | |
3.2 | 6.6 | |
13 days ago | 4 months ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
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.
hackernews-sauron
-
Statically embed the output of a wasm crate in another crate
I did the same thing in a hackernews clone, except it is using sauron, instead of yew. I think yew is using trunk, which create and generate a files named with hashes, so it changed everytime the files are built. I use wasm-pack to build the wasm and the glue js file, which doesn't changed every build. So it is easy to just embed and serve them server side.
- [META] Like Rationalists Leaving A . . .
- Minimal docker image for Rust app
- This is the most resilient, fastest, snappiest, and cleanest hackernews clone you will ever see.
-
Easiest to work with web framework?
I can vouch for warp, the experience has been smooth so far, no crashes. The url route might be a bit not intuitive at first, but comes easier the more you use it. Here is a port of hackernews I wrote using all rust stack.
-
Rust web frameworks, a new look? (discussion)
I'm the author of sauron web framework and it has the capability of progressive server-side rendering as demonstrated in one of the examples. There is also a demo app which is a clone of hackernews which is built to be resilient in the event of failure in either the javascript or the server. It is extensively used in svgbob, which has been adopted as plugin for other projects such as asciidoctor and krokio.
-
Rust developing in Belgium
There is an example project which demonstrate its fullstack capability.
- Show HN: A snappy and resilient Hacker News clone in ~1k lines of rust
- [Show] A snappy and resilient hackernews clone in ~1k lines of rust.
- A resilient hackernews clone in ~1k lines of rust.
Tide
-
Latest Zen Kernel......
Rust has several, production ready, REST API frame works.
- Which Web Framework do people recommend for Rust in 2023?
-
Becoming Rustacean:Awesome Free Online Resources to Learn Rust Programming
Rust allows me to mainly only run the application to confirm things work from a business perspective.
For people starting out building stuff in rust - understand that there is a distinction of async code and libraries and can lead to confusing compiler errors if you don't realize there is a distinction. It's simple in hindsight but did cause me to waste hours barking up the wrong trees at first. Other wise just learn about `match` and Result/Option types asap, they're fundamental.
https://github.com/http-rs/tide tide is great to create an http server / routes
https://github.com/djc/askama I use this to template out HTML and it checks all my boxes, dynamic data, passing in functions, control flow.
https://github.com/launchbadge/sqlx sql interface for a variety of backend, async safe.
https://github.com/seanmonstar/reqwest http client to make requests
Rust is amazing, don't let the initial few speed bumps discourage you - building real things with rust is no more challenging today than any other modern language stack.
-
Use of Salvo for a REST Api
https://crates.io/crates/salvo - 581k all time and peak daily of ~2750 in last few months https://crates.io/crates/rocket - 2.68mil all-time / ~6200 daily https://crates.io/crates/actix-web - 9.8mil all-time / ~21k daily https://crates.io/crates/axum - 8.8mil all-time / 64k daily https://crates.io/crates/warp - 7.9mil all-time and 19k daily https://crates.io/crates/tide - 886k all-time / 2250 daily
-
Why this works?
Hi, guys, how you doing? I'm trying out this web framework Tide just to make a toy project and learn more about Rust. The create_payment_handler function is called by the framework whenever there is a POST request to /payment/ containing a JSON body with the payment information.
-
Which Rust web framework to choose in 2022 (with code examples)
tide
-
Is Rust good choice for the backend of any mobile application?
I'm developing the backend of https://www.cozydate.com/ in Rust. Async Rust is not productive yet, so I tried rouille http server which lets me write non-async request handlers. Unfortunately, it uses an unbounded thread pool and falls down under load https://github.com/tiny-http/tiny-http/issues/221 . Then I tried Tide and a threadpool to call my non-async API handlers. This worked, but was really ugly, and I had issues with uploads after deploying to Heroku https://github.com/http-rs/tide/issues/878 .
- Ask HN: Anyone using Rust for server side application development?
-
Web framework in production - Rocket v Actix
You could also habe a look at tide apparently it is stable and production ready.
- Tide - Fast and friendly http server framework for async rust
What are some alternatives?
rust-web-framework-comparison - A comparison of some web frameworks and libs written in Rust
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
youki - A container runtime written in Rust
Rocket - A web framework for Rust.
ultron - Web base text editor written in rust
yourcontrols - Shared cockpit for Microsoft Flight Simulator.
DFeed - D news aggregator, newsgroup client, web newsreader and IRC bot
Nickel - An expressjs inspired web framework for Rust
rhyme-es
The FastCGI Rust implementation. - Native Rust library for FastCGI
tealr - A wrapper around mlua and rlua to generate documentation and other helpers
hyper - An HTTP library for Rust