Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced rustc_serialize with serde #709

Merged
merged 5 commits into from May 27, 2020
Merged

Replaced rustc_serialize with serde #709

merged 5 commits into from May 27, 2020

Conversation

Kixiron
Copy link
Member

@Kixiron Kixiron commented Apr 11, 2020

  • Removed rustc_serialize
  • Added serde and serde_json

Notes:

  • This is currently broken, as handlebars hates every fiber of my being. I can't figure it out, so I'm hoping one of y'all can figure it out. I've enabled the serde feature for it and am feeding it a serde compatible struct, but it says that Page<T> doesn't implement Serialize, when it does.

@Kixiron
Copy link
Member Author

Kixiron commented Apr 11, 2020

I hate everything about this, while updating I encountered a compile error in staticfile, so this PR is now upgrading iron and running cargo update

@Kixiron Kixiron changed the title [WIP] Migrated from rustc_serialize to serde Upgraded iron, replaced rustc_serialize and ran cargo update Apr 11, 2020
@Kixiron
Copy link
Member Author

Kixiron commented Apr 11, 2020

I've followed the original json format, but I may have missed something, so whoever reviews make sure they're identical

@jyn514 jyn514 mentioned this pull request Apr 11, 2020
Cargo.toml Outdated Show resolved Hide resolved
@Kixiron Kixiron changed the title Upgraded iron, replaced rustc_serialize and ran cargo update Replaced rustc_serialize with serde Apr 11, 2020
src/docbuilder/limits.rs Outdated Show resolved Hide resolved
src/web/builds.rs Outdated Show resolved Hide resolved
src/web/builds.rs Outdated Show resolved Hide resolved
src/web/builds.rs Outdated Show resolved Hide resolved
src/web/crate_details.rs Outdated Show resolved Hide resolved
src/web/mod.rs Outdated Show resolved Hide resolved
src/web/routes.rs Outdated Show resolved Hide resolved
src/web/routes.rs Outdated Show resolved Hide resolved
src/web/routes.rs Outdated Show resolved Hide resolved
src/web/routes.rs Outdated Show resolved Hide resolved
@jyn514
Copy link
Member

jyn514 commented Apr 27, 2020

This needs to be rebased. Also, I'm not convinced that switching everything at once is the right way to go, see e.g. #459 (comment).

The added tests are great, would it be possible to add those in a separate PR? That would avoid blocking them on switching to serde.

@Kixiron Kixiron force-pushed the jason branch 3 times, most recently from e760b83 to 66df6a4 Compare May 3, 2020 00:46
@Kixiron
Copy link
Member Author

Kixiron commented May 3, 2020

Update: Waiting on #743, and then am just going to rewrite this PR entirely

src/web/crate_details.rs Outdated Show resolved Hide resolved
src/web/crate_details.rs Outdated Show resolved Hide resolved
src/web/crate_details.rs Outdated Show resolved Hide resolved
src/web/page.rs Outdated Show resolved Hide resolved
src/web/page.rs Outdated Show resolved Hide resolved
src/web/page.rs Outdated Show resolved Hide resolved
src/web/releases.rs Outdated Show resolved Hide resolved
src/web/rustdoc.rs Show resolved Hide resolved
src/web/source.rs Outdated Show resolved Hide resolved
src/web/source.rs Outdated Show resolved Hide resolved
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once last nit is fixed :)

src/web/releases.rs Outdated Show resolved Hide resolved
@jyn514 jyn514 merged commit 8b04730 into rust-lang:master May 27, 2020
@Kixiron Kixiron deleted the jason branch May 27, 2020 18:48
@Nemo157 Nemo157 mentioned this pull request May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants