Skip to content

Commit 14821db

Browse files
authored
Allow unread fields in the JSON schema (#345)
1 parent 7f01863 commit 14821db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/json.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use {
1010

1111
#[derive(Debug, Deserialize)]
1212
#[serde(deny_unknown_fields)]
13+
#[allow(dead_code)]
1314
pub struct LinkEntry {
1415
pub name: String,
1516
pub path_static: Option<String>,
@@ -20,6 +21,7 @@ pub struct LinkEntry {
2021

2122
#[derive(Debug, Deserialize)]
2223
#[serde(deny_unknown_fields)]
24+
#[allow(dead_code)]
2325
pub struct PythonBuildExtensionInfo {
2426
pub in_core: bool,
2527
pub init_fn: String,
@@ -36,6 +38,7 @@ pub struct PythonBuildExtensionInfo {
3638

3739
#[derive(Debug, Deserialize)]
3840
#[serde(deny_unknown_fields)]
41+
#[allow(dead_code)]
3942
pub struct PythonBuildCoreInfo {
4043
pub objs: Vec<String>,
4144
pub links: Vec<LinkEntry>,
@@ -45,6 +48,7 @@ pub struct PythonBuildCoreInfo {
4548

4649
#[derive(Debug, Deserialize)]
4750
#[serde(deny_unknown_fields)]
51+
#[allow(dead_code)]
4852
pub struct PythonBuildInfo {
4953
pub core: PythonBuildCoreInfo,
5054
pub extensions: BTreeMap<String, Vec<PythonBuildExtensionInfo>>,
@@ -56,6 +60,7 @@ pub struct PythonBuildInfo {
5660

5761
#[derive(Debug, Deserialize)]
5862
#[serde(deny_unknown_fields)]
63+
#[allow(dead_code)]
5964
pub struct PythonJsonMain {
6065
pub apple_sdk_canonical_name: Option<String>,
6166
pub apple_sdk_deployment_target: Option<String>,

0 commit comments

Comments
 (0)