Ogeon / rustful

[OUTDATED] A light HTTP framework for Rust
https://docs.rs/rustful
Apache License 2.0
862 stars 52 forks source link

Remove support for rustc-serialize #123

Closed Ogeon closed 7 years ago

Ogeon commented 7 years ago

rustc-serialize has been deprecated so there's no longer any good reasons to maintain built-in support for it.

ghost commented 7 years ago

By "remove" you mean "remove all references to rustc-serialize until test passes"? If so here's the quick version of that: https://github.com/Ogeon/rustful/compare/master...xliiv:rustc-serialize-%23123?expand=1

What do you think, would you like to spare somehow examples/todo.rs?

Ogeon commented 7 years ago

Oh my, I thought I answered this via email! I'm so sorry @xliiv, I didn't intend to leave you hanging for a month.

What you did looks good, but I would like to keep the todo example. It may at least serve as an example of how to convert to serde. Do you feel like picking this up again?

ghost commented 7 years ago

Hanging was ok, i've just moved on. ;) So @Ogeon, you'd like to convert the todo example to serde and rest is ok?

Ogeon commented 7 years ago

Yep, that should be enough. No need to replace the methods, since serde JSON should have tools that covers those use cases.

ghost commented 7 years ago

I'll giva a try tomorrow.. .

Ogeon commented 7 years ago

Nice! Thank you! Let me know if you change your mind. :slightly_smiling_face:

ghost commented 7 years ago

I changed my mind. I did some work today. ;) Take a look at the newest version, with reverted example: todo https://github.com/Ogeon/rustful/compare/master...xliiv:rustc-serialize-%23123?expand=1 If it's ok or close to ok, i can do pull-request.

Ogeon commented 7 years ago

Heh, by changing your mind I meant not continuing, but I guess this counts as well! :smile: I'll have a look.

Ogeon commented 7 years ago

That's great! A very clean and straight forward port! :+1: