Skip to content

Commit

Permalink
Bump serde_json version and add arbitrary_precision feature.
Browse files Browse the repository at this point in the history
This allows passing u128 through serde_json::Value, which is done in the CLI crate.
  • Loading branch information
kazimuth committed Oct 14, 2024
1 parent 5541cec commit 2836aec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ scopeguard = "1.1.0"
second-stack = "0.3"
sendgrid = "0.21"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = { version = "1.0.87", features = ["raw_value"] }
serde_json = { version = "1.0.128", features = ["raw_value", "arbitrary_precision"] }
serde_path_to_error = "0.1.9"
serde_with = { version = "3.3.0", features = ["base64", "hex"] }
serial_test = "2.0.0"
Expand Down
1 change: 1 addition & 0 deletions crates/cli/src/subcommands/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ fn reformat_update<'a>(
let table_ty = schema.typespace.resolve(table_schema.product_type_ref);

let reformat_row = |row: &str| -> anyhow::Result<Value> {
// TODO: can the following two calls be merged into a single call to reduce allocations?
let row = serde_json::from_str::<Value>(row)?;
let row = serde::de::DeserializeSeed::deserialize(SeedWrapper(table_ty), row)?;
let row = table_ty.with_value(&row);
Expand Down
7 changes: 7 additions & 0 deletions crates/lib/proptest-regressions/address.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Seeds for failure cases proptest has generated in the past. It is
# automatically read and these particular cases re-run before any
# novel cases are generated.
#
# It is recommended to check this file in to source control so that
# everyone who runs the test benefits from these saved cases.
cc 4dc1661cd0b78ee7036f894d2c7cf52955f05e41bb0322095ec00edf9b6fca77 # shrinks to val = 18446744073709551616

0 comments on commit 2836aec

Please sign in to comment.