Skip to content

Commit ecceef6

Browse files
committed
Use serde to deserialize badges from the database
All of the logic we're using to validate the attributes can be entirely represented with serde.
1 parent 35d2240 commit ecceef6

File tree

4 files changed

+106
-138
lines changed

4 files changed

+106
-138
lines changed

Cargo.lock

+76-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ git2 = "0.6.4"
2323
flate2 = "0.2"
2424
semver = "0.5"
2525
url = "1.2.1"
26-
postgres = { version = "0.13", features = ["with-time", "with-openssl", "with-rustc-serialize"] }
26+
postgres = { version = "0.14.0", features = ["with-time", "with-openssl", "with-serde_json"] }
2727
r2d2 = "0.7.0"
28-
r2d2_postgres = "0.11"
28+
r2d2_postgres = "0.12.0"
2929
openssl = "0.9"
3030
curl = "0.4"
3131
oauth2 = "0.3"
@@ -39,6 +39,9 @@ diesel = { version = "0.11.0", features = ["postgres", "serde_json"] }
3939
diesel_codegen = { version = "0.11.0", features = ["postgres"] }
4040
r2d2-diesel = "0.11.0"
4141
diesel_full_text_search = "0.11.0"
42+
serde_json = "0.9.9"
43+
serde_derive = "0.9.11"
44+
serde = "0.9.11"
4245

4346
conduit = "0.8"
4447
conduit-conditional-get = "0.8"

0 commit comments

Comments
 (0)