Skip to content

Commit aa281f8

Browse files
committed
diesel: Enable numeric feature
This is needed to support the `Numeric` type in Postgres, which is used by our custom `to_semver_no_prerelease` function
1 parent e4ef88e commit aa281f8

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

Cargo.lock

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ rustdoc-args = [
3232
[dependencies]
3333
anyhow = "1.0"
3434
base64 = "0.13"
35+
bigdecimal = { version = ">= 0.0.10, < 0.2.0", features = ["serde"] }
3536
cargo-registry-markdown = { path = "cargo-registry-markdown" }
3637
cargo-registry-s3 = { path = "cargo-registry-s3" }
3738
chrono = { version = "0.4.19", features = ["serde"] }
@@ -50,7 +51,7 @@ cookie = { version = "0.15", features = ["secure"] }
5051
dashmap = { version = "4.0.2", features = ["raw-api"] }
5152
derive_deref = "1.1.1"
5253
dialoguer = "0.9"
53-
diesel = { version = "1.4.8", features = ["postgres", "serde_json", "chrono", "r2d2"] }
54+
diesel = { version = "1.4.8", features = ["postgres", "serde_json", "chrono", "numeric", "r2d2"] }
5455
diesel_full_text_search = "1.0.1"
5556
diesel_migrations = { version = "1.4.0", features = ["postgres"] }
5657
dotenv = "0.15"

0 commit comments

Comments
 (0)