fengsp / pencil

A web application microframework for Rust
https://fengsp.github.io/pencil/
Other
872 stars 43 forks source link

Towards Pencil 0.4 #49

Open golddranks opened 7 years ago

golddranks commented 7 years ago

Hi,

I've been using Pencil for the last few months, and I've built a web app that has now entering production stage. As I've been building my app, I've maintained a fork of Pencil, which has allowed me to quickly add features that I've needed. (The fork can be found here: https://github.com/golddranks/pencil/commits/master )

These changes include but are not limited to:

I also made some changes that may prove controversial:

I haven't really looked into how much work implementing more zero-copy parsing would be. Yet.

I'd like to contribute these changes back to Pencil, and help releasing Pencil 0.4. However, as the changes are just stop-gap solutions to my problems, I need to brush them up a bit if I were to contribute them. However, I want to have a confirmation from the maintainer @fengsp if he is willing to merge the PRs if I were to contribute stuff, since I don't want to do needless work :D What do you think?

golddranks commented 7 years ago

PSA: I've published a fork called sharp_pencil that mostly does what's been said above (Edit: plus it also allows using Fn closures as handlers! [but not views, ATM]). I'm still willing to merge it, but while there is no answer, it's at least a stop-gap solution.

You can use it like:

[dependencies]
sharp_pencil = "0.4"

and

extern crate sharp_pencil as pencil;

There might be minor breakage with the updated dependencies (and possibly some type inference issues as I made the return values of MultiDics more flexible.) but nothing too drastic.

spazm commented 7 years ago

:+1:

saggit commented 6 years ago

@fengsp What you think?

spacekookie commented 6 years ago

Is this still being developed?

golddranks commented 6 years ago

I think that this project is essentially dead... There are other web frameworks in Rust that are more actively developed.

golddranks commented 3 years ago

Sharp Pencil 0.5 has been released after 3 and half years.

golddranks commented 3 years ago

It's essentially just a dependency bump, though :–D

micwoj92 commented 1 year ago

@golddranks It would be great if you could open issue tracker on your sharp_pencil fork, due to some changes in notify crate it no longer compiles.

golddranks commented 1 year ago

@micwoj92 Done! And let's see about the notify crate.