Skip to content

Commit 67a69d5

Browse files
pchickeythomastaylor312
authored andcommitted
update wasm-tools deps to 0.227
and rename local struct member `author` to `authors` to align with the same change in wasm-metadata
1 parent 45b2fd5 commit 67a69d5

File tree

5 files changed

+140
-19
lines changed

5 files changed

+140
-19
lines changed

Cargo.lock

Lines changed: 133 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ tracing-subscriber = { version = "0.3.18", default-features = false, features =
3939
wasm-pkg-common = { version = "0.10.0", path = "crates/wasm-pkg-common" }
4040
wasm-pkg-client = { version = "0.10.0", path = "crates/wasm-pkg-client" }
4141
wasm-pkg-core = { version = "0.10.0", path = "crates/wasm-pkg-core" }
42-
wasm-metadata = "0.224"
43-
wit-component = "0.224"
44-
wit-parser = "0.224"
42+
wasm-metadata = "0.227"
43+
wit-component = "0.227"
44+
wit-parser = "0.227"

crates/wasm-pkg-client/src/oci/publisher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl PackagePublisher for OciBackend {
5555
homepage.to_string(),
5656
);
5757
}
58-
if let Some(authors) = &meta.author {
58+
if let Some(authors) = &meta.authors {
5959
annotations.insert(
6060
"org.opencontainers.image.authors".to_string(),
6161
authors.to_string(),

crates/wasm-pkg-core/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub struct Override {
7777
pub struct Metadata {
7878
/// The author(s) of the package.
7979
#[serde(default, skip_serializing_if = "Option::is_none")]
80-
pub author: Option<String>,
80+
pub authors: Option<String>,
8181
/// The package description.
8282
#[serde(default, skip_serializing_if = "Option::is_none")]
8383
pub description: Option<String>,
@@ -112,7 +112,7 @@ mod tests {
112112
},
113113
)])),
114114
metadata: Some(Metadata {
115-
author: Some("Foo Bar".to_string()),
115+
authors: Some("Foo Bar".to_string()),
116116
description: Some("Foobar baz".to_string()),
117117
licenses: Some("FBB".to_string()),
118118
source: Some("https://gitfoo/bar".to_string()),

crates/wasm-pkg-core/src/wit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub async fn build_package(
8989
env!("CARGO_PKG_NAME").to_string(),
9090
processed_by_version.to_string(),
9191
)],
92-
author: metadata.author.map(|v| v.parse()).transpose()?,
92+
authors: metadata.authors.map(|v| v.parse()).transpose()?,
9393
description: metadata.description.map(|v| v.parse()).transpose()?,
9494
licenses: metadata.licenses.map(|v| v.parse()).transpose()?,
9595
source: metadata.source.map(|v| v.parse()).transpose()?,

0 commit comments

Comments
 (0)