You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #367: Add a feature for serde deny unknown fields
14c3dd6 Feature gate serde(deny_unknown_fields) (Jamil Lambert, PhD)
ba366fd Add a feature for serde deny unknown fields (Jamil Lambert, PhD)
2406d12 Remove serde deny_unknown_fields from client (Jamil Lambert, PhD)
ced1f4f Use relative path dependencies for corepc crates (Jamil Lambert, PhD)
f8fa8d6 Reorder dependencies in Cargo.toml files (Jamil Lambert, PhD)
Pull request description:
Currently there is no way to turn off the deny unknown fields attribute. This can cause issues when using the crate in cases where there are fields returned by the RPC that are not yet in the types structs, e.g. in unmerged Core PRs (see #366).
- Reorder the dependencies in the `Cargo.toml` files to make checking for consistency across the crates easier.
- Use relative paths for the `corepc` crates dependencies.
- Remove one case of `#[serde(deny_unknown_fields)]` in `client` that is not needed.
- Add a feature that can be used to enable the attribute, which is off by default since it is only needed in testing. Enable the feature in `integration_test` by adding a `types` dependency.
- Search and replace all occurrences of `#[serde(deny_unknown_fields)]` with `#[cfg_attr(feature = "serde-deny-unknown-fields", serde(deny_unknown_fields))]`
Closes#366
ACKs for top commit:
tcharding:
ACK 14c3dd6
Tree-SHA512: 519ab2218685aeedfad737339a5907793c3ce0d80d5a5a5b6c56385af924bca6b13ae94e68baeb1c7a66a4f090eac3254f6137adcbdbde2393dc0ebf5a14e440
0 commit comments