Commit 1c5788c
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 6394545 commit 1c5788c
7 files changed
Lines changed: 69 additions & 419 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 | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 13 | + | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
| |||
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
40 | | - | |
| 35 | + | |
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
| |||
| 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