Commit 3a9c52a
committed
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: 519ab2218685aeedfad737339a5907793c3ce0d80d5a5a5b6c56385af924bca6b13ae94e68baeb1c7a66a4f090eac3254f6137adcbdbde2393dc0ebf5a14e440File tree
86 files changed
+530
-537
lines changed- client
- src/client_sync/v21
- integration_test
- node
- types
- src
- model
- psbt
- v17
- blockchain
- mining
- network
- raw_transactions
- util
- wallet
- v18
- blockchain
- network
- raw_transactions
- util
- wallet
- v19
- blockchain
- network
- wallet
- v20
- util
- wallet
- v21
- blockchain
- generating
- network
- raw_transactions
- wallet
- v22
- blockchain
- raw_transactions
- wallet
- v23
- blockchain
- raw_transactions
- util
- wallet
- v24
- blockchain
- raw_transactions
- wallet
- v25
- blockchain
- generating
- raw_transactions
- wallet
- v26
- blockchain
- raw_transactions
- wallet
- v27
- v28
- raw_transactions
- wallet
- v29
- blockchain
- mining
- raw_transactions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
86 files changed
+530
-537
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 16 | | |
20 | | - | |
| 17 | + | |
| 18 | + | |
21 | 19 | | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
0 commit comments