Skip to content

Commit

Permalink
fix: schemars 0.8.18 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Hankung7183 committed May 6, 2024
1 parent 8385733 commit 2fdce80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/tauri-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ html5ever = "0.26"
kuchiki = { package = "kuchikiki", version = "0.8" }
proc-macro2 = { version = "1", optional = true }
quote = { version = "1", optional = true }
schemars = { version = "0.8", features = [ "url" ], optional = true }
schemars = { version = "0.8.18", features = [ "url" ], optional = true }
serde_with = "3"
aes-gcm = { version = "0.10", optional = true }
getrandom = { version = "0.2", optional = true, features = [ "std" ] }
Expand Down
14 changes: 4 additions & 10 deletions core/tauri-utils/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,19 +213,13 @@ impl schemars::JsonSchema for BundleTarget {
..Default::default()
}
.into(),
schemars::_private::apply_metadata(
schemars::_private::metadata::add_description(
gen.subschema_for::<Vec<BundleType>>(),
schemars::schema::Metadata {
description: Some("A list of bundle targets.".to_owned()),
..Default::default()
},
"A list of bundle targets.",
),
schemars::_private::apply_metadata(
schemars::_private::metadata::add_description(
gen.subschema_for::<BundleType>(),
schemars::schema::Metadata {
description: Some("A single bundle target.".to_owned()),
..Default::default()
},
"A single bundle target.",
),
];

Expand Down

0 comments on commit 2fdce80

Please sign in to comment.