Commit 9309a97
committed
graph: Track diesel's bigdecimal version and drop vendored PG codec
Our `BigDecimal` wrapped `bigdecimal = 0.1.2` (renamed `old_bigdecimal`) to
avoid diesel's numeric ToSql/FromSql impls targeting a distinct type, and to
avoid a PoI divergence attributed to the upgrade. That forced `num-bigint`
to `=0.2.6` and required ~150 lines of vendored PgNumeric codec.
Move `bigdecimal` and `num-bigint` into `[workspace.dependencies]` (0.3 and
0.4, unpinned), so our newtype wraps the same type diesel ships impls for.
The vendored `mod pg` collapses to two ToSql/FromSql delegations. The
`big_decimal_stable` PoI hashes remain unchanged.
`num-bigint` 0.4 returns `u64` from `BigInt::bits()` and requires a typed
operand for `Shl`/`Shr`; adjust `BigInt` wrapper accordingly.1 parent 9bbb1c4 commit 9309a97
7 files changed
Lines changed: 70 additions & 420 deletions
File tree
- graph
- src/data
- query
- store/scalar
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 12 | + | |
| 13 | + | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
| |||
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
41 | | - | |
| 36 | + | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
0 commit comments