TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rustful – A RESTful web framework for Rust

140 pointsby aethertapover 10 years ago

7 comments

ogeonover 10 years ago
Wow! I did not expect this. It&#x27;s fantastic to see that people are actually interested in this project, so here comes the story of Rustful:<p>It all began at the beginning 2014. I had a university project where I should build some kind of website with a database and I wanted to build it in Rust. The problem what that there was no good frameworks out there and those who existed did not compile, so I decided to roll my own. I would just need the basic routing and request handling, so it wasn&#x27;t hard. I played with some words and came up with the name Rustful (combination of Rust and RESTful, but you did probably guess that) and hated it, but my friends told me that it was a great name and I thought that, well, it&#x27;s silly enough to actually work. It grew on me over time.<p>Anyway, time passed and I finished my project. I thought that I could keep developing Rustful and use it for my own website and so on. I thought that I should keep it small and simple and &quot;out of the way&quot;, because I do personally get annoyed by things that tries to control my work flow too much. There is no &quot;The Rustful Way (tm)&quot; to do things and it shouldn&#x27;t be.<p>Time kept passing, as usual, and other frameworks started to pop up and gain followers and users. Some, like Iron, had a whole team behind them and it became hard to keep up and, at the same time, complete my studies. This eventually lead to me putting the project on ice during the summer.<p>Fast forwards to this morning. I get a mail about someone asking what the difference between Iron and Rustful is and I think &quot;why do people still keep linking to this thing?&quot; and then I see the torrent of stars on Github. This is when I create my HN account to write this.<p>Now I&#x27;m thinking: &quot;Is it time to revive Rustful?&quot;
评论 #8466450 未加载
bgentryover 10 years ago
Looks to be inspired heavily by Go&#x27;s net&#x2F;http package and its interfaces: <a href="http://golang.org/pkg/net/http/" rel="nofollow">http:&#x2F;&#x2F;golang.org&#x2F;pkg&#x2F;net&#x2F;http&#x2F;</a>
评论 #8464031 未加载
评论 #8461207 未加载
hckr1292over 10 years ago
This is really cool -- also, I&#x27;m curious why Ogeon built this. It seems eerily similarly to what reem is trying to accomplish with IronFramework.io and what the good people at Nickel.rs are doing as well. I&#x27;d love to hear if this is trying to accomplish a fundamentally different goal or if it was more of a learning project.
评论 #8462019 未加载
评论 #8464024 未加载
m0th87over 10 years ago
With Rust&#x27;s switch to 1:1 threading (soon to be not even optional AFAIK), how will this affect the concurrency capabilities of Rust-based web servers, and servers in general?
评论 #8461123 未加载
评论 #8460148 未加载
评论 #8461725 未加载
dead10ckover 10 years ago
I&#x27;m curious about how these web framework crates, like this and IronFramework.io, are dealing with the imminent obsoletion of rust-http. It seems rather strange to build a completely new web framework on rust-http when it will soon be completely replaced with teepee.
评论 #8462837 未加载
评论 #8463788 未加载
JeremyMorganover 10 years ago
This is the type of thing that will make me want to try Rust. Just glancing over the code this looks fairly clean and simple, and could be a good foundation moving forward.<p>Nice work!
评论 #8461200 未加载
kolanosover 10 years ago
This looks great. Now all I need is a database abstraction layer, any recommendations?
评论 #8461182 未加载